aboutsummaryrefslogtreecommitdiff
path: root/core/testing/runner.odin
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2025-11-24 21:56:34 +0900
committerYawning Angel <yawning@schwanenlied.me>2025-11-29 10:45:53 +0900
commit73883b70c83f2d9d1d7c99784450e7926206f12d (patch)
treeb4b21384792a4a1b5dfdce4b4a35f3b3f53ef232 /core/testing/runner.odin
parentf74f93154a43674b82bc63bfb891072509af0e3a (diff)
testing: Use xoshiro256** instead of the runtime RNG
While platforms that do not have an entropy source have no rights, use something that is always guaranteed to work.
Diffstat (limited to 'core/testing/runner.odin')
-rw-r--r--core/testing/runner.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/testing/runner.odin b/core/testing/runner.odin
index 9ce4f35cb..b6691dbf0 100644
--- a/core/testing/runner.odin
+++ b/core/testing/runner.odin
@@ -151,9 +151,9 @@ run_test_task :: proc(task: thread.Task) {
options = logger_options,
}
- random_generator_state: runtime.Default_Random_State
+ random_generator_state: rand.Xoshiro256_Random_State
context.random_generator = {
- procedure = runtime.default_random_generator_proc,
+ procedure = rand.xoshiro256_random_generator_proc,
data = &random_generator_state,
}
rand.reset(data.t.seed)