Merge branch 'master' into new-sys-unix

This commit is contained in:
gingerBill
2023-10-31 12:16:25 +00:00
committed by GitHub
64 changed files with 739 additions and 101 deletions
+14
View File
@@ -0,0 +1,14 @@
package rand
foreign import "odin_env"
foreign odin_env {
@(link_name = "rand_bytes")
env_rand_bytes :: proc "contextless" (buf: []byte) ---
}
@(require_results)
_system_random :: proc() -> u64 {
buf: [8]u8
env_rand_bytes(buf[:])
return transmute(u64)buf
}