You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/package/utils/util-linux/patches/100-use_urandom.patch

15 lines
305 B
Diff

--- a/lib/randutils.c
+++ b/lib/randutils.c
@@ -26,6 +26,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__)