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.
11 #include <stdint.h> /* for uint32_t */
15 /* Return 16-bit number pseudo-randomly generated. */
16 extern uint16_t rrand();
20 /* Set seed that rrand() starts from. */
21 extern void rrand_seed(uint32_t new_seed);