aboutsummaryrefslogtreecommitdiff
path: root/stdlib/rng.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-19 15:11:54 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-19 15:11:54 -0500
commit88d1bde371ba6bec42952f7cce242afd41f524d9 (patch)
tree05107286ad028ae22a4bbcef8a776e7115817c5f /stdlib/rng.c
parentef546696e825359ccfd865648eb0ca5cf87233f1 (diff)
RNG needs to not be thread-local to make GC happy
Diffstat (limited to 'stdlib/rng.c')
-rw-r--r--stdlib/rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/rng.c b/stdlib/rng.c
index 9558f96b..c6bcfa5d 100644
--- a/stdlib/rng.c
+++ b/stdlib/rng.c
@@ -18,7 +18,7 @@
#include "chacha.h"
-public _Thread_local RNG_t default_rng = NULL;
+public RNG_t default_rng = NULL;
struct RNGState_t {
chacha_ctx chacha;