util-linux: Fix taskset conflict with busybox
[openwrt/staging/nbd.git] / package / utils / util-linux / patches / 210-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__)