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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user