add crypto.rand_bytes for Darwin and FreeBSD

This commit is contained in:
Laytan Laats
2024-02-13 17:34:00 +01:00
parent f378367fe7
commit 3bc172c70b
3 changed files with 15 additions and 16 deletions
+3 -4
View File
@@ -1,7 +1,6 @@
//+build !linux !windows !openbsd !freebsd !darwin !js
package crypto
when ODIN_OS != .Linux && ODIN_OS != .OpenBSD && ODIN_OS != .Windows && ODIN_OS != .JS {
_rand_bytes :: proc(dst: []byte) {
unimplemented("crypto: rand_bytes not supported on this OS")
}
_rand_bytes :: proc(dst: []byte) {
unimplemented("crypto: rand_bytes not supported on this OS")
}