Lines Matching defs:entropy
144 static double entropy = 0;
189 entropy = 0;
315 * counter). By XORing it we keep at least as much entropy as fits into
321 if (entropy < ENTROPY_NEEDED) /* stop counting when we have enough */
322 entropy += add;
402 ok = (entropy >= ENTROPY_NEEDED);
407 * to decrease the entropy estimate. Once we've had enough initial
408 * seeding we don't bother to adjust the entropy count, though,
411 * we have enough entropy. Entropy should be collected in a separate
413 * entropy limit has been reached.
415 entropy -= num;
416 if (entropy < 0)
417 entropy = 0;
423 * better make sure that the required entropy gets 'evenly
485 * entropy: since this buffer is often uninitialised it may cause
488 * entropy has negligible impact on security.
582 ret = entropy >= ENTROPY_NEEDED;