aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2025-02-10 17:27:58 +0000
committernathansmith117 <nathansmith117@sdf.org>2025-02-10 17:27:58 +0000
commit5798d82c8dbaf49bb30d90b10eb5fcab15956a0d (patch)
tree080f972a728d0c54677ecfa5face276369fd0720 /include
parentdb6e56cab84f004d8cee833b197d0cfc52014cd4 (diff)
downloadsldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.tar.gz
sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.tar.bz2
sldj-5798d82c8dbaf49bb30d90b10eb5fcab15956a0d.zip
Sleepyness
Diffstat (limited to 'include')
-rw-r--r--include/libsldj/util.h3
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