Home | History | Annotate | Download | only in rand

Lines Matching defs:entropy

141 static double entropy=0;
186 entropy=0;
312 * much entropy as fits into md. */
317 if (entropy < ENTROPY_NEEDED) /* stop counting when we have enough */
318 entropy += add;
398 ok = (entropy >= ENTROPY_NEEDED);
403 * state; thus we have to decrease the entropy estimate.
405 * adjust the entropy count, though, because we're not ambitious
409 * we have enough entropy. Entropy should be collected
411 * output pool only when the entropy limit has been reached.
413 entropy -= num;
414 if (entropy < 0)
415 entropy = 0;
421 * so we better make sure that the required entropy gets
480 * source of entropy: since this buffer is often uninitialised
483 * of such a small source of entropy has negligible impact on
582 ret = entropy >= ENTROPY_NEEDED;