mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
15 lines
305 B
Diff
15 lines
305 B
Diff
|
--- a/lib/randutils.c
|
||
|
+++ b/lib/randutils.c
|
||
|
@@ -25,6 +25,11 @@
|
||
|
#define THREAD_LOCAL static
|
||
|
#endif
|
||
|
|
||
|
+/* force /dev/urandom to avoid hanging on early boot */
|
||
|
+#undef HAVE_GETRANDOM
|
||
|
+#undef SYS_getrandom
|
||
|
+#undef __NR_getrandom
|
||
|
+
|
||
|
#ifdef HAVE_GETRANDOM
|
||
|
# include <sys/random.h>
|
||
|
#elif defined (__linux__)
|