grub/grub-core/osdep/random.c
Vladimir 'phcoder' Serbinenko b102ce6909 * 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.
2013-10-08 21:28:14 +02:00

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