Always use random data from the crypto provider

This commit is contained in:
Ondřej Surý
2018-04-18 12:13:28 -07:00
parent 6a49d41c5b
commit 9a3a257374
18 changed files with 5 additions and 379 deletions

View File

@@ -183,13 +183,12 @@ main(int argc, char **argv) {
ectx = NULL;
RUNCHECK(isc_entropy_create(mctx, &ectx));
#ifdef ISC_PLATFORM_CRYPTORANDOM
if (randomfile == NULL) {
isc_entropy_usehook(ectx, ISC_TRUE);
}
#endif
if (randomfile != NULL)
if (randomfile != NULL) {
RUNCHECK(isc_entropy_createfilesource(ectx, randomfile));
}
log = NULL;
logconfig = NULL;