Move PRNG initialization to simplify cheat.c
[open-adventure.git] / cheat.c
diff --git a/cheat.c b/cheat.c
index 5bca67f3e0f267f3ee07a0cf6362514ef4916793..89b0f72265b544b37cfe755cf9a9f9ac2acc23a4 100644 (file)
--- a/cheat.c
+++ b/cheat.c
@@ -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();