mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
b155fdf8c9
This allows runtime detection as to if `rand_bytes` is supported or not, and lets us enable the test-case on all of the supported targets.
16 lines
269 B
Odin
16 lines
269 B
Odin
//+build !linux
|
|
//+build !windows
|
|
//+build !openbsd
|
|
//+build !freebsd
|
|
//+build !darwin
|
|
//+build !js
|
|
package crypto
|
|
|
|
_rand_bytes :: proc(dst: []byte) {
|
|
unimplemented("crypto: rand_bytes not supported on this OS")
|
|
}
|
|
|
|
_has_rand_bytes :: proc () -> bool {
|
|
return false
|
|
}
|