Replace Math.random with crypto.getRandomValues for _system_number
This commit is contained in:
1 parent
8b2f62000a
commit
49da19e013
3 files changed
+6
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user