mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-15 00:00:16 -04:00
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:
parent
f8b2906929
commit
190cd8a475
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user