b102ce6909
get random when no RNG is available. * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
10 lines
345 B
C
10 lines
345 B
C
#if defined (_WIN32) || defined (__CYGWIN__)
|
|
#include "windows/random.c"
|
|
#elif defined (__linux__) || defined (__FreeBSD__) \
|
|
|| defined (__FreeBSD_kernel__) || defined (__OpenBSD__) \
|
|
|| defined (__GNU__) || defined (__NetBSD__) \
|
|
|| defined (__APPLE__) || defined(__sun__)
|
|
#include "unix/random.c"
|
|
#else
|
|
#include "basic/random.c"
|
|
#endif
|