Use Linux getrandom() to ensure random device is initialised

Remove old code warning about random device being not ready,
/dev/random isn't used by default anyway.
This commit is contained in:
Matt Johnston
2020-05-28 22:50:41 +08:00
parent 5027bc4db1
commit 89e98a2f83
3 changed files with 98 additions and 57 deletions

View File

@@ -124,6 +124,10 @@
#include <sys/uio.h>
#endif
#ifdef HAVE_SYS_RANDOM_H
#include <sys/random.h>
#endif
#ifdef BUNDLED_LIBTOM
#include "libtomcrypt/src/headers/tomcrypt.h"
#include "libtommath/tommath.h"