Replace Math.random with crypto.getRandomValues for _system_number

This commit is contained in:
Damian Tarnawski committed 2023-10-27 12:06:35 +02:00
1 parent 8b2f62000a
commit 49da19e013
3 files changed
+6 -5

No files matched your search

+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