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

@@ -776,6 +776,7 @@ sys_random_seed()
fptr = fopen(DEV_RANDOM, "r");
if (fptr) {
fread(&seed, sizeof(long), 1, fptr);
has_strong_rngseed = TRUE;
}
fclose(fptr);
#else