home · contact · privacy
Also read window title from config/windows/ files. To facilitate that, also corrected...
[plomrogue] / src / rrand.h
1 /* rrand.h
2  *
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.
6  */
7
8
9
10 #ifndef RRAND_H
11 #define RRAND_H
12
13 #include <stdint.h>    /* for uint32_t */
14
15
16
17 /* Return 16-bit number pseudo-randomly generated. */
18 extern uint16_t rrand();
19
20
21
22 /* Set seed that rrand() starts from. */
23 extern void rrand_seed(uint32_t new_seed);
24
25
26
27 #endif