diff options
| author | Yawning Angel <yawning@schwanenlied.me> | 2024-03-17 10:29:59 +0900 |
|---|---|---|
| committer | Yawning Angel <yawning@schwanenlied.me> | 2024-04-09 10:23:58 +0900 |
| commit | b155fdf8c96d6269fe0f56a3fda76a3df1e5a7c8 (patch) | |
| tree | c7fec38a6c943882c457f1c368325853e4f4f6b3 /tests | |
| parent | a43a5b053c1d1e931eeb56d65e6a40f634a0b94f (diff) | |
core/crypto: Add `has_rand_bytes`
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/crypto/test_core_crypto.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/core/crypto/test_core_crypto.odin b/tests/core/crypto/test_core_crypto.odin index a6d399097..742e3cc04 100644 --- a/tests/core/crypto/test_core_crypto.odin +++ b/tests/core/crypto/test_core_crypto.odin @@ -347,7 +347,7 @@ test_x25519 :: proc(t: ^testing.T) { test_rand_bytes :: proc(t: ^testing.T) { tc.log(t, "Testing rand_bytes") - if ODIN_OS != .Linux { + if !crypto.has_rand_bytes() { tc.log(t, "rand_bytes not supported - skipping") return } |