aboutsummaryrefslogtreecommitdiff
path: root/crypto/random-none.c
AgeCommit message (Collapse)AuthorFilesLines
2020-06-15crypto: add "none" random providerMarek Marczykowski-Górecki1-0/+38
In case of not using random-number needing feature, it makes sense to skip RNG init too. This is especially helpful when QEMU is sandboxed in Stubdomain under Xen, where there is very little entropy so initial getrandom() call delays the startup several seconds. In that setup, no random bytes are needed at all. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>