diff options
| author | Yawning Angel <yawning@schwanenlied.me> | 2025-11-24 21:56:34 +0900 |
|---|---|---|
| committer | Yawning Angel <yawning@schwanenlied.me> | 2025-11-29 10:45:53 +0900 |
| commit | 73883b70c83f2d9d1d7c99784450e7926206f12d (patch) | |
| tree | b4b21384792a4a1b5dfdce4b4a35f3b3f53ef232 | |
| parent | f74f93154a43674b82bc63bfb891072509af0e3a (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.
| -rw-r--r-- | core/testing/runner.odin | 4 |
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) |