chrony/test
Miroslav Lichvar a0a9560258 util: reset GetRandom functions in helpers after fork
Close /dev/urandom and drop cached getrandom() data after forking helper
processes to avoid them getting the same sequence of random numbers
(e.g. two NTS-KE helpers generating cookies with identical nonces).
arc4random() is assumed to be able to detect forks and reseed
automatically.

This is not strictly necessary with the current code, which does not use
the GetRandom functions before the NTS-KE helper processes are forked,
but that could change in future.

Also, call the reset function before exit to close /dev/urandom in order
to avoid valgrind reporting the file object as "still reachable".
2021-11-24 11:17:24 +01:00
..
compilation test: fix chronyc test with disabled IPv6 support 2021-09-23 14:48:59 +02:00
kernel test: extend frequency in ntp_adjtime() test 2020-08-31 10:17:21 +02:00
simulation test: add 144-exp1 test 2021-11-16 10:36:26 +01:00
system cmdmon: add interleaved stats to serverstats 2021-10-21 17:04:51 +02:00
unit util: reset GetRandom functions in helpers after fork 2021-11-24 11:17:24 +01:00