100-use_urandom.patch 305 B

1234567891011121314
  1. --- a/lib/randutils.c
  2. +++ b/lib/randutils.c
  3. @@ -25,6 +25,11 @@
  4. #define THREAD_LOCAL static
  5. #endif
  6. +/* force /dev/urandom to avoid hanging on early boot */
  7. +#undef HAVE_GETRANDOM
  8. +#undef SYS_getrandom
  9. +#undef __NR_getrandom
  10. +
  11. #ifdef HAVE_GETRANDOM
  12. # include <sys/random.h>
  13. #elif defined (__linux__)