* grub-core/osdep/basic/random.c: New file. Abort on an attempt to
get random when no RNG is available. * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
This commit is contained in:
parent
acbbe5cbad
commit
b102ce6909
4 changed files with 53 additions and 6 deletions
|
@ -1,5 +1,10 @@
|
|||
#if defined (_WIN32) || defined (__CYGWIN__)
|
||||
#include "windows/random.c"
|
||||
#else
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue