3 * Provide pseudo-random numbers via a Linear Congruential Generator algorithm
4 * with some proven constants. Use these functions instead of rand() and
5 * srand() to ensure portable pseudo-randomness portability.
13 #include <stdint.h> /* for uint32_t */
17 /* Return 16-bit number pseudo-randomly generated. */
18 extern uint16_t rrand();
22 /* Set seed that rrand() starts from. */
23 extern void rrand_seed(uint32_t new_seed);