diff options
| author | Xotchkass <78706300+Xotchkass@users.noreply.github.com> | 2025-08-14 13:49:59 +0300 |
|---|---|---|
| committer | Xotchkass <78706300+Xotchkass@users.noreply.github.com> | 2025-08-14 13:49:59 +0300 |
| commit | d60fba13df171fb0fb1e9cacf942ac83d1f56bd9 (patch) | |
| tree | 95f40d24a9f5e340773da3a2db2e581062fe0ba8 /base | |
| parent | 2d5652dbd40e966d3373307e463f71b7dd1c37b0 (diff) | |
fix: throwing away the last generated byte in default_random_generator_proc
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/random_generator.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/runtime/random_generator.odin b/base/runtime/random_generator.odin index 81432b330..ca5c008d0 100644 --- a/base/runtime/random_generator.odin +++ b/base/runtime/random_generator.odin @@ -97,7 +97,7 @@ default_random_generator_proc :: proc(data: rawptr, mode: Random_Generator_Mode, for &v in p { if pos == 0 { val = read_u64(r) - pos = 7 + pos = 8 } v = byte(val) val >>= 8 |