MINENTROPYBITS
bitspending += MIN(MINENTROPYBITS - bitspending, nbits);
return C->bitspending >= MINENTROPYBITS ||
C->bitspending += MIN(MINENTROPYBITS - C->bitspending,
#define MINSAMPLES (2*MINENTROPYBITS)
atomic_store_relaxed(&E->bitsneeded, MINENTROPYBITS);
bitsneeded += MIN(MINENTROPYBITS - bitsneeded, cost);
.bitsneeded = MINENTROPYBITS,
atomic_store_relaxed(&E->bitsneeded, MINENTROPYBITS);
*countp = MINENTROPYBITS - E->bitsneeded;
pstat->threshold = MINENTROPYBITS/NBBY; /* bytes */
pstat->curentropy = MINENTROPYBITS - E->bitsneeded; /* bits */
KASSERTMSG(E->bitspending <= MINENTROPYBITS,
MINENTROPYBITS - E->bitspending);
E->bitspending == MINENTROPYBITS ||
(unsigned)MINENTROPYBITS, (unsigned)MINSAMPLES);
KASSERTMSG(E->bitspending <= MINENTROPYBITS,
notify |= (nbits >= MINENTROPYBITS);
bitspending += MIN(MINENTROPYBITS - bitspending, nbits);