srogue: more compatibility improvements.

Randomness now uses mdport, and xcrypt.c has been replaced with the
rogue5 version.

Super-Rogue now builds on MinGW.
This commit is contained in:
John "Elwin" Edwards 2014-05-03 10:31:30 -07:00
parent b9cc9cf3a7
commit 120beada5a
6 changed files with 104 additions and 66 deletions

View file

@ -173,7 +173,7 @@ char **envp;
fflush(stdout);
seed = dnum;
srandom(seed); /* init rnd number gen */
md_srandom(seed); /* init rnd number gen */
md_onsignal_exit(); /* just in case */
@ -354,7 +354,7 @@ int range;
if (range == 0)
wh = 0;
else {
wh = random() % range;
wh = md_random() % range;
wh &= 0x7FFFFFFF;
}
return wh;