Skip to content

Commit

Permalink
Scramble random seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
TurkeyMcMac committed Mar 1, 2022
1 parent 8af15ee commit d7f9773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/play-menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "common-keys.h"
#include "game.h"
#include "help.h"
#include "rand.h"
#include <curses.h>
#include <time.h>

Expand Down Expand Up @@ -149,7 +150,8 @@ void play_menu_run(void)
params.seed = seed_input;
} else {
/* Generate a seed in the range (min, max]. */
params.seed = (unsigned long)time(NULL)
RAND_TYPE rand = time(NULL);
params.seed = rand_gen(&rand)
% (GAME_SEED_MAX - GAME_SEED_MIN)
+ GAME_SEED_MIN + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* The version of the program: */
#define VERSION "0.5.15"
#define VERSION "0.6.0"

0 comments on commit d7f9773

Please sign in to comment.