util-linux: Update to 2.35.1
[openwrt/openwrt.git] / package / utils / util-linux / patches / 100-use_urandom.patch
1 --- a/lib/randutils.c
2 +++ b/lib/randutils.c
3 @@ -26,6 +26,11 @@
4 #define THREAD_LOCAL static
5 #endif
6
7 +/* force /dev/urandom to avoid hanging on early boot */
8 +#undef HAVE_GETRANDOM
9 +#undef SYS_getrandom
10 +#undef __NR_getrandom
11 +
12 #ifdef HAVE_GETRANDOM
13 # include <sys/random.h>
14 #elif defined (__linux__)