diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-28 22:50:41 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-28 22:50:41 +0800 |
commit | 89e98a2f8382bcaab0e7ba04cb4050c9d62898a4 (patch) | |
tree | d0e2d836a78fc8ad73850bcca665914efbea15df /includes.h | |
parent | 5027bc4db18a50aebd70bf4ae41f7702469c01ba (diff) |
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.
Diffstat (limited to 'includes.h')
-rw-r--r-- | includes.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |