Home | History | Annotate | Download | only in stdlib

Lines Matching defs:random

1 /*	$NetBSD: random.c,v 1.7 2021/12/12 22:20:52 andvar Exp $	*/
36 static char sccsid[] = "@(#)random.c 8.2 (Berkeley) 5/19/95";
38 __RCSID("$NetBSD: random.c,v 1.7 2021/12/12 22:20:52 andvar Exp $");
51 __weak_alias(random,_random)
73 * random.c:
75 * An improved random number generation package. In addition to the standard
79 * then initialized to contain information for random number generation with
84 * information and generates far better random numbers than a linear
96 * The random number generation technique is a linear feedback shift register
103 * influenced by pseudo-random carries out of the lower bits. The total
124 * state information and generates far better random numbers than a linear
137 * For each of the currently supported random number generators, we have a
139 * many bytes of state info to support this random number generator), a degree
225 * could get away with just one pointer, but the code for random() is more
242 * of random(), we remember the first location of the state information, not
257 * Initialize the random number generator based on the given seed. If the
281 * From "Random number generators: good ones are hard
317 * random number generation. Based on the number of bytes we are given, and
452 * random:
460 * generated, reduced to 31 bits by throwing away the "least random" low bit.
466 * Returns a 31-bit random number.
483 /* chucking least random bit */
499 random(void)
510 random(void)
517 * From "Random number generators: good ones are hard to find",