crypto: use /dev/[u]random as a final fallback random source
commitf3c8355c7aaa89a5c5676756d4ba6139ea26b446
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Jul 2016 09:37:14 +0000 (21 10:37 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Jul 2016 09:46:27 +0000 (21 10:46 +0100)
tree310a074c7ebc5b1d61c2d069736fa3cc0dc0c03a
parente66b05e9ca471715388182613217503160ed7a4d
crypto: use /dev/[u]random as a final fallback random source

If neither gcrypt or gnutls are available to provide a
cryptographic random number generator, fallback to consuming
bytes directly from /dev/[u]random.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/Makefile.objs
crypto/random-platform.c [moved from crypto/random-stub.c with 52% similarity]