summaryrefslogtreecommitdiffhomepage
path: root/includes.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-28 22:50:41 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-28 22:50:41 +0800
commit89e98a2f8382bcaab0e7ba04cb4050c9d62898a4 (patch)
treed0e2d836a78fc8ad73850bcca665914efbea15df /includes.h
parent5027bc4db18a50aebd70bf4ae41f7702469c01ba (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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index 6432d6e..e8c3e18 100644
--- a/includes.h
+++ b/includes.h
@@ -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"