X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=077e3a996d200dde709fda3215035b194f5c9c99;hp=a6027f8136e06637db534a1a3df691a0e8384e3e;hb=065caace647f86770df0d7bb9f1a3a1ffdd0f188;hpb=0a87fc9f78c40354068749f93cbbed80e217cd88 diff --git a/main.c b/main.c index a6027f8..077e3a9 100644 --- a/main.c +++ b/main.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include "advent.h" #include "linenoise/linenoise.h" @@ -138,17 +137,8 @@ int main(int argc, char *argv[]) linenoiseHistorySetMaxLen(350); - /* Initialize our LCG PRNG with parameters tested against - * Knuth vol. 2. by the original authors */ - 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(); + long seedval = initialise(); /* Start-up, dwarf stuff */ make_zzword(game.zzword);