home · contact · privacy
MAJOR re-write. Split plomrogue into a server and a client. Re-wrote large parts
[plomrogue] / src / server / rrand.h
1 /* src/server/rrand.h
2  *
3  * Provides deterministic pseudo-randomness.
4  */
5
6 #ifndef RRAND_H
7 #define RRAND_H
8
9 #include <stdint.h> /* uint16_t */
10
11
12
13 /* Return 16-bit number pseudo-randomly generated via Linear Congruential
14  * Generator algorithm with some proven constants. Use instead of rand() to
15  * ensure portability of the same pseudo-randomness across systems.
16  */
17 extern uint16_t rrand();
18
19
20
21 #endif