home · contact · privacy
74f12fd5a3c0f28256e6f1acf7c61a72a59fecd3
[plomrogue] / src / server / rrand.h
1 /* src/server/rrand.h
2  *
3  * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
4  * or any later version. For details on its copyright, license, and warranties,
5  * see the file NOTICE in the root directory of the PlomRogue source package.
6  *
7  * Provides deterministic pseudo-randomness.
8  */
9
10 #ifndef RRAND_H
11 #define RRAND_H
12
13 #include <stdint.h> /* uint16_t */
14
15
16
17 /* Return 16-bit number pseudo-randomly generated via Linear Congruential
18  * Generator algorithm with some proven constants. Use instead of rand() to
19  * ensure portability of the same pseudo-randomness across systems.
20  */
21 extern uint16_t rrand();
22
23
24
25 #endif