fix: throwing away the last generated byte in default_random_generator_proc
This commit is contained in:
1 file changed
+1
-1
@@ -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