core/crypto: Add a HAS_RAND_BYTES constant
This commit is contained in:
1 parent
902e877467
commit
a6eb64df6c
8 files changed
+24
-31
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user