diff rogue5/save.c @ 252:3d4252fa2ed3

Use more portable random seed generation. The new function md_random_seed() has replaced time() + getpid() and similar methods. Putting everything in mdport.c slightly reduces the warnings and workarounds.
author John "Elwin" Edwards
date Sat, 28 Jan 2017 15:49:41 -0500
parents af6b05e86747
children 0250220d8cdd
line wrap: on
line diff
--- a/rogue5/save.c	Sat Jan 28 11:45:36 2017 -0500
+++ b/rogue5/save.c	Sat Jan 28 15:49:41 2017 -0500
@@ -264,7 +264,7 @@
 
     strcpy(file_name, file);
     clearok(curscr, TRUE);
-    srand(md_getpid());
+    srand(md_random_seed());
     msg("file name: %s", file);
     playit();
     /*NOTREACHED*/