diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libsldj/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libsldj/util.h b/include/libsldj/util.h index 2c8dff6..8edf4dc 100644 --- a/include/libsldj/util.h +++ b/include/libsldj/util.h @@ -22,6 +22,9 @@ #define SLDJ_HYPOT2(x, y) (SLDJ_SQRT(x * x + y * y)) #define SLDJ_HYPOT3(x, y, z) (SLDJ_SQRT(x * x + y * y + z * z)) +#define SLDJ_RANDOM16(seed) (seed = (75 * seed + 74) % 65537) +#define SLDJ_RANDOM32(seed) (seed = (1664525 * seed + 1013904223) % 4294967296) + // Stuff stolen from raylib/raymath #ifndef RL_COLOR_TYPE #define RL_COLOR_TYPE |