Don't define Rand() if isaac64 is used

This commit is contained in:
Patric Mueller
2019-01-17 11:48:58 +01:00
parent 3f609bf9ad
commit 97b8d0a50b
7 changed files with 44 additions and 56 deletions

View File

@@ -243,21 +243,19 @@ typedef __mode_t mode_t;
#define rindex strrchr
/* Use the high quality random number routines. */
#ifdef USE_ISAAC64
#define Rand() rn2(RAND_MAX)
#else
#if defined(RANDOM)
#define Rand() random()
#ifndef USE_ISAAC64
# if defined(RANDOM)
# define Rand() random()
/* VMS V7 adds these entry points to DECC$SHR; stick with the nethack-supplied
code to avoid having to deal with version-specific conditionalized builds
*/
#define random nh_random
#define srandom nh_srandom
#define initstate nh_initstate
#define setstate nh_setstate
#else
#define Rand() rand()
#endif
# define random nh_random
# define srandom nh_srandom
# define initstate nh_initstate
# define setstate nh_setstate
# else
# define Rand() rand()
# endif
#endif
#define SYS_RANDOM_SEED