mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
fix: throwing away the last generated byte in default_random_generator_proc
This commit is contained in:
@@ -97,7 +97,7 @@ default_random_generator_proc :: proc(data: rawptr, mode: Random_Generator_Mode,
|
|||||||
for &v in p {
|
for &v in p {
|
||||||
if pos == 0 {
|
if pos == 0 {
|
||||||
val = read_u64(r)
|
val = read_u64(r)
|
||||||
pos = 7
|
pos = 8
|
||||||
}
|
}
|
||||||
v = byte(val)
|
v = byte(val)
|
||||||
val >>= 8
|
val >>= 8
|
||||||
|
|||||||
Reference in New Issue
Block a user