diff options
author | nathansmith117 <nathansmith117@sdf.org> | 2025-02-10 17:27:58 +0000 |
---|---|---|
committer | nathansmith117 <nathansmith117@sdf.org> | 2025-02-10 17:27:58 +0000 |
commit | 5798d82c8dbaf49bb30d90b10eb5fcab15956a0d (patch) | |
tree | 080f972a728d0c54677ecfa5face276369fd0720 /include | |
parent | db6e56cab84f004d8cee833b197d0cfc52014cd4 (diff) | |
download | sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.tar.gz sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.tar.bz2 sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.zip |
Sleepyness
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 |