comparison rogue3/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 d852b8f088c5
children
comparison
equal deleted inserted replaced
251:e7862a021609 252:3d4252fa2ed3
243 environ = envp; 243 environ = envp;
244 strcpy(file_name, file); 244 strcpy(file_name, file);
245 setup(); 245 setup();
246 clearok(curscr, TRUE); 246 clearok(curscr, TRUE);
247 touchwin(cw); 247 touchwin(cw);
248 srand(md_getpid()); 248 srand(md_random_seed());
249 status(); 249 status();
250 playit(); 250 playit();
251 /*NOTREACHED*/ 251 /*NOTREACHED*/
252 return(0); 252 return(0);
253 } 253 }