From 89e98a2f8382bcaab0e7ba04cb4050c9d62898a4 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 28 May 2020 22:50:41 +0800 Subject: 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. --- includes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes.h') diff --git a/includes.h b/includes.h index 6432d6e..e8c3e18 100644 --- a/includes.h +++ b/includes.h @@ -124,6 +124,10 @@ #include #endif +#ifdef HAVE_SYS_RANDOM_H +#include +#endif + #ifdef BUNDLED_LIBTOM #include "libtomcrypt/src/headers/tomcrypt.h" #include "libtommath/tommath.h" -- cgit v1.2.3