mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
remove darwin from bsd filename
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//+build freebsd, openbsd
|
||||
package crypto
|
||||
|
||||
foreign import libc "system:c"
|
||||
|
||||
foreign libc {
|
||||
arc4random_buf :: proc(buf: [^]byte, nbytes: uint) ---
|
||||
}
|
||||
|
||||
_rand_bytes :: proc(dst: []byte) {
|
||||
arc4random_buf(raw_data(dst), len(dst))
|
||||
}
|
||||
Reference in New Issue
Block a user