diff rogue5/scedit.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 f502bf60e6e4
children
line wrap: on
line diff
--- a/rogue5/scedit.c	Sat Jan 28 11:45:36 2017 -0500
+++ b/rogue5/scedit.c	Sat Jan 28 15:49:41 2017 -0500
@@ -52,7 +52,7 @@
 		scorefile = "rogue54.scr";
 	else
 		scorefile = av[1];
-	seed = md_getpid();
+	seed = md_random_seed();
 
 	if ((inf = fopen(scorefile, "r+")) < 0) {
 		perror(scorefile);