comparison 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
comparison
equal deleted inserted replaced
251:e7862a021609 252:3d4252fa2ed3
262 262
263 md_tstpresume(); 263 md_tstpresume();
264 264
265 strcpy(file_name, file); 265 strcpy(file_name, file);
266 clearok(curscr, TRUE); 266 clearok(curscr, TRUE);
267 srand(md_getpid()); 267 srand(md_random_seed());
268 msg("file name: %s", file); 268 msg("file name: %s", file);
269 playit(); 269 playit();
270 /*NOTREACHED*/ 270 /*NOTREACHED*/
271 return(0); 271 return(0);
272 } 272 }