]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virRandomBytes: Use gnutls_rnd whenever possible
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 May 2018 07:43:26 +0000 (09:43 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 5 Jun 2018 08:31:19 +0000 (10:31 +0200)
commitb87dda7549e4bc6dadf8d3110afcc9e2d2866f7f
treeadf2aaa44da534d66145805a0a68cd1e3a55ca91
parent8981c750b111c8a549a888d066f5e5c736787326
virRandomBytes: Use gnutls_rnd whenever possible

While /dev/urandom is not terrible source of random data
gnutls_rnd is better. Prefer that one.

Also, since nearly every platform we build on already has gnutls
(if not all of them) this is going to be used by default.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/vircrypto.c
src/util/virrandom.c