comparison arogue5/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 56e748983fa8
children d3968e9cb98d
comparison
equal deleted inserted replaced
251:e7862a021609 252:3d4252fa2ed3
253 environ = envp; 253 environ = envp;
254 strcpy(file_name, file); 254 strcpy(file_name, file);
255 setup(); 255 setup();
256 clearok(curscr, TRUE); 256 clearok(curscr, TRUE);
257 touchwin(cw); 257 touchwin(cw);
258 srand(getpid()); 258 srand(md_random_seed());
259 playit(); 259 playit();
260 /*NOTREACHED*/ 260 /*NOTREACHED*/
261 return(FALSE); 261 return(FALSE);
262 } 262 }
263 263