Merge pull request #163 from jD91mZM2/master

Patch libsodium randbytes
This commit is contained in:
Jeremy Soller 2018-06-03 06:02:45 -06:00 committed by GitHub
commit ebb23fe4b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
--- a/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c 2018-06-03 07:26:17.413729023 +0200
+++ b/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c 2018-06-03 07:41:40.119390067 +0200
@@ -162,10 +162,7 @@
/* LCOV_EXCL_START */
struct stat st;
static const char *devices[] = {
-# ifndef USE_BLOCKING_RANDOM
- "/dev/urandom",
-# endif
- "/dev/random", NULL
+ "rand:", NULL
};
const char **device = devices;
int fd;