2017-09-29 10:30:52 +00:00
|
|
|
--- a/lib/randutils.c
|
|
|
|
+++ b/lib/randutils.c
|
2020-02-03 17:11:35 +00:00
|
|
|
@@ -26,6 +26,11 @@
|
2017-09-29 10:30:52 +00:00
|
|
|
#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__)
|