]> git.proxmox.com Git - mirror_qemu.git/blobdiff - crypto/random-gcrypt.c
minikconf: do not include variables from MINIKCONF_ARGS in config-all-devices.mak
[mirror_qemu.git] / crypto / random-gcrypt.c
index 0de9a096df9dff7e66681ef4cd9ef7a087c77cf5..7aea4ac81f22ab5193f38cbd6f1d791c44f65fb2 100644 (file)
 
 #include <gcrypt.h>
 
-int qcrypto_random_bytes(uint8_t *buf,
+int qcrypto_random_bytes(void *buf,
                          size_t buflen,
                          Error **errp G_GNUC_UNUSED)
 {
     gcry_randomize(buf, buflen, GCRY_STRONG_RANDOM);
     return 0;
 }
+
+int qcrypto_random_init(Error **errp G_GNUC_UNUSED) { return 0; }