comparison rogue4/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 1b73a8641b37
children d3968e9cb98d
comparison
equal deleted inserted replaced
251:e7862a021609 252:3d4252fa2ed3
315 environ = envp; 315 environ = envp;
316 strcpy(file_name, file); 316 strcpy(file_name, file);
317 setup(); 317 setup();
318 clearok(curscr, TRUE); 318 clearok(curscr, TRUE);
319 touchwin(stdscr); 319 touchwin(stdscr);
320 srand(getpid()); 320 srand(md_random_seed());
321 msg("file name: %s", file); 321 msg("file name: %s", file);
322 status(); 322 status();
323 playit(); 323 playit();
324 return 0; 324 return 0;
325 } 325 }