ntconf.h ensure Rand is always something
order of preference: USE_ISAAC64 RANDOM C routine
This commit is contained in:
+10
-7
@@ -180,13 +180,16 @@ extern void FDECL(interject, (int));
|
|||||||
#define USE_STDARG
|
#define USE_STDARG
|
||||||
|
|
||||||
/* Use the high quality random number routines. */
|
/* Use the high quality random number routines. */
|
||||||
#ifndef USE_ISAAC64
|
#ifdef USE_ISAAC64
|
||||||
# define RANDOM
|
#undef RANDOM
|
||||||
# ifdef RANDOM
|
#else
|
||||||
# define Rand() random()
|
#define RANDOM
|
||||||
# else
|
#define Rand() random()
|
||||||
# define Rand() rand()
|
#endif
|
||||||
# endif
|
|
||||||
|
/* Fall back to C's if nothing else, but this really isn't acceptable */
|
||||||
|
#if !defined(USE_ISAAC64) && !defined(RANDOM)
|
||||||
|
#define Rand() rand()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user