Replace Math.random with crypto.getRandomValues for _system_number

This commit is contained in:
Damian Tarnawski
2023-10-27 12:06:35 +02:00
parent 8b2f62000a
commit 49da19e013
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ foreign odin_env {
env_rand_bytes :: proc "contextless" (buf: []byte) ---
}
_MAX_PER_CALL_BYTES :: 65536
_MAX_PER_CALL_BYTES :: 65536 // 64kiB
_rand_bytes :: proc(dst: []byte) {
dst := dst