mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-22 21:04:18 +08:00
Patch libsodium randbytes
This commit is contained in:
parent
215b60d358
commit
3df8f321b3
14
recipes/libsodium/random.patch
Normal file
14
recipes/libsodium/random.patch
Normal 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;
|
||||
Loading…
Reference in New Issue
Block a user