Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/includes.h Thu May 28 22:02:33 2020 +0800 +++ b/includes.h Thu May 28 22:50:41 2020 +0800 @@ -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"