1
0
mirror of https://github.com/simh/simh.git synced 2026-04-15 08:01:30 +00:00

SCP: Enable use of local rand() and scrand() implementation

This commit is contained in:
Mark Pizzolato
2019-04-03 09:43:47 -07:00
parent bb2368ab8d
commit 64fa357bf9
2 changed files with 21 additions and 6 deletions

4
scp.h
View File

@@ -236,7 +236,9 @@ int sim_rand (void);
#ifdef RAND_MAX
#undef RAND_MAX
#endif
#define RAND_MAX 32767
#define RAND_MAX 2147483646
#define rand sim_rand
#define srand(seed) sim_srand(seed)
CONST char *get_sim_opt (int32 opt, CONST char *cptr, t_stat *st);
CONST char *get_sim_sw (CONST char *cptr);
const char *put_switches (char *buf, size_t bufsize, uint32 sw);