Merge branch 'master' into new-sys-unix

This commit is contained in:
gingerBill authored and GitHub committed 2023-10-31 12:16:25 +00:00
commit eb261f5b28
64 files changed
+739 -101

No files matched your search

+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
}