Always use random data from the crypto provider
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user