don't reset initialized state to ISC_TRUE -- it is a counter now, not a boolean

This commit is contained in:
Michael Graff 2000-06-12 21:37:13 +00:00
parent 85db942a01
commit 6a3beb6f7e

View file

@ -423,11 +423,8 @@ fillpool(isc_entropy_t *ent, unsigned int needed, isc_boolean_t blocking) {
/*
* Mark as initialized if we've added enough data.
*/
if (ent->initialized < 20) {
if (ent->initialized < 20)
ent->initialized += added;
if (ent->initialized >= 20)
ent->initialized = ISC_TRUE;
}
}
static int