diff srogue/main.c @ 121:e6c8652473fe

srogue: more compatibility improvements. Randomness now uses mdport, and xcrypt.c has been replaced with the rogue5 version. Super-Rogue now builds on MinGW.
author John "Elwin" Edwards
date Sat, 03 May 2014 10:31:30 -0700
parents d6b7c3fb37ea
children 78fa1d0e5d25
line wrap: on
line diff
--- a/srogue/main.c	Fri May 02 15:06:23 2014 -0700
+++ b/srogue/main.c	Sat May 03 10:31:30 2014 -0700
@@ -173,7 +173,7 @@
 
 	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 @@
 	if (range == 0)
 		wh = 0;
 	else {
-		wh = random() % range;
+		wh = md_random() % range;
 		wh &= 0x7FFFFFFF;
 	}
 	return wh;