mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
allow blocking when priming the pseudorandom generator
This commit is contained in:
@@ -545,6 +545,9 @@ isc_entropy_getdata(isc_entropy_t *ent, void *data, unsigned int length,
|
|||||||
* If we've extracted half our pool size in bits
|
* If we've extracted half our pool size in bits
|
||||||
* since the last refresh, try to refresh here.
|
* since the last refresh, try to refresh here.
|
||||||
*/
|
*/
|
||||||
|
if (ent->initialized < 20)
|
||||||
|
fillpool(ent, 20, blocking);
|
||||||
|
else
|
||||||
fillpool(ent, 0, ISC_FALSE);
|
fillpool(ent, 0, ISC_FALSE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user