core/crypto: Add a HAS_RAND_BYTES constant

This commit is contained in:
Yawning Angel
2024-04-23 11:47:43 +09:00
parent 902e877467
commit a6eb64df6c
8 changed files with 24 additions and 31 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ test_chacha20poly1305 :: proc(t: ^testing.T) {
test_rand_bytes :: proc(t: ^testing.T) {
tc.log(t, "Testing rand_bytes")
if !crypto.has_rand_bytes() {
if !crypto.HAS_RAND_BYTES {
tc.log(t, "rand_bytes not supported - skipping")
return
}