summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/random.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/random.c b/src/random.c
index 1bbf152..fb059a0 100644
--- a/src/random.c
+++ b/src/random.c
@@ -1,4 +1,8 @@
#include "../include/al/random.h"
-u32 al_rand_seed = 1738;
+u32 al_rand_seed = AL_RAND_INIT_SEED;
+
__thread bool al_rand_set = false;
+#ifndef AL_SRAND_THREAD_LOCAL
+__thread u32 al_rand_state = AL_RAND_INIT_SEED;
+#endif