Move PRNG initialization to simplify cheat.c

This commit is contained in:
Eric S. Raymond 2017-07-01 08:59:45 -04:00
parent 0a87fc9f78
commit 065caace64
4 changed files with 15 additions and 20 deletions

View file

@ -83,13 +83,6 @@ int main(int argc, char *argv[])
FILE *fp = NULL;
game.lcg_a = 1093;
game.lcg_c = 221587;
game.lcg_m = 1048576;
srand(time(NULL));
long seedval = (long)rand();
set_seed(seedval);
/* Initialize game variables */
initialise();