Lines Matching full:random

43 * randm.c - Random number generator program file.
87 static long magic_randcount; /* Pseudo-random incrementer */
88 static u32_t magic_randomseed; /* Seed used for random number generation. */
91 * Churn the randomness pool on a random event. Call this early and often
92 * on random and semi-random system events to build randomness in time for
95 * If new random data is available, pass a pointer to that and it will be
131 * Initialize the random number generator.
138 * Randomize our random seed value.
145 * magic_random_bytes - Fill a buffer with random bytes.
147 * Use the random pool to generate random data. This degrades to pseudo
148 * random when used faster than randomness is supplied using magic_churnrand().
183 * Return a new random number.
201 static u32_t magic_randomseed; /* Seed used for random number generation. */
209 * Initialize the random number generator.
211 * Here we attempt to compute a random number seed but even if
212 * it isn't random, we'll randomize it later.
219 * operational. Thus we call it again on the first random
225 /* Initialize the Borland random number generator. */ in magic_init()
233 * Randomize our random seed value. Here we use the fact that
234 * this function is called at *truely random* times by the polling
235 * and network functions. Here we only get 16 bits of new random
254 * Return a new random number.
256 * Here we use the Borland rand() function to supply a pseudo random
257 * number which we make truely random by combining it with our own
258 * seed which is randomized by truely random events.
259 * Thus the numbers will be truely random unless there have been no
260 * operator or network events in which case it will be pseudo random
272 * magic_random_bytes - Fill a buffer with random bytes.
288 * Return a new random number between 0 and (2^pow)-1 included.