detect rng seed strength at runtime based on algorithm not compile time based on platform features

This commit is contained in:
nhmall
2019-01-18 18:42:42 -05:00
committed by Patric Mueller
parent 0a430cab11
commit 0aa4d62a2c
5 changed files with 8 additions and 2 deletions

View File

@@ -899,8 +899,10 @@ init_random()
void
reseed_random()
{
/* reseed */
init_random();
/* only reseed if we are certain that the seed generation is unguessable
* by the players. */
if (has_strong_rngseed)
init_random();
}
time_t