pluto: Use srand() to initialize the C library PRNG.

Otherwise rekey and DPD times would always be the same after a restart.
This commit is contained in:
Tobias Brunner 2012-01-04 13:19:29 +01:00
parent f8b2906929
commit 190cd8a475

View File

@ -675,6 +675,9 @@ int main(int argc, char **argv)
close(fd);
}
/* for uncritical pseudo random numbers */
srand(time(NULL) + getpid());
init_constants();
init_log("pluto");