comparison includes.h @ 1698:f966834f0f9c

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.
author Matt Johnston <matt@ucc.asn.au>
date Thu, 28 May 2020 22:50:41 +0800
parents cc0fc5131c5c
children ca75bb513359
comparison
equal deleted inserted replaced
1697:789466c5956b 1698:f966834f0f9c
122 122
123 #ifdef HAVE_SYS_UIO_H 123 #ifdef HAVE_SYS_UIO_H
124 #include <sys/uio.h> 124 #include <sys/uio.h>
125 #endif 125 #endif
126 126
127 #ifdef HAVE_SYS_RANDOM_H
128 #include <sys/random.h>
129 #endif
130
127 #ifdef BUNDLED_LIBTOM 131 #ifdef BUNDLED_LIBTOM
128 #include "libtomcrypt/src/headers/tomcrypt.h" 132 #include "libtomcrypt/src/headers/tomcrypt.h"
129 #include "libtommath/tommath.h" 133 #include "libtommath/tommath.h"
130 #else 134 #else
131 #include <tomcrypt.h> 135 #include <tomcrypt.h>