Once again, take srand()/random() out of the initialization chain.

They have exactly the wrong kind of randomness for this job - not
returning consistent sequences across different platforms or C library
versions, and because pseodorandom not really better than sampling
the clock.
This commit is contained in:
Eric S. Raymond 2017-05-24 23:36:25 -04:00
parent 6146406990
commit 6ba9a7de7f
3 changed files with 6 additions and 7 deletions

2
main.c
View file

@ -99,7 +99,7 @@ int main(int argc, char *argv[]) {
lcgstate.a = 1093;
lcgstate.c = 221587;
lcgstate.m = 1048576;
set_seed_from_time();
set_seed((long)time(NULL));
/* Read the database if we have not yet done so */