blob: 848f2f40c2d22e3a56f2976d740b8da2dbf83592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- 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__)
|