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

@@ -120,6 +120,7 @@ NEARDATA boolean mrg_to_wielded = FALSE;
/* weapon picked is merged with wielded one */
NEARDATA boolean in_steed_dismounting = FALSE;
NEARDATA boolean has_strong_rngseed = FALSE;
NEARDATA coord bhitpos = DUMMY;
NEARDATA coord doors[DOORMAX] = { DUMMY };

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