Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / package / utils / util-linux / patches / 100-use_urandom.patch
1 --- a/lib/randutils.c
2 +++ b/lib/randutils.c
3 @@ -25,6 +25,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__)