15 lines
394 B
Plaintext
15 lines
394 B
Plaintext
$OpenBSD: patch-random_seed_c,v 1.2 2018/02/18 19:55:05 bket Exp $
|
|
Index: random_seed.c
|
|
--- random_seed.c.orig
|
|
+++ random_seed.c
|
|
@@ -228,6 +228,9 @@ int json_c_get_random_seed()
|
|
#if HAVE_RDRAND
|
|
if (has_rdrand()) return get_rdrand_seed();
|
|
#endif
|
|
+#if HAVE_ARC4RANDOM
|
|
+ return arc4random();
|
|
+#endif
|
|
#if HAVE_DEV_RANDOM
|
|
if (has_dev_urandom()) return get_dev_random_seed();
|
|
#endif
|