Merged with master

This commit is contained in:
Andreas T Jonsson
2024-05-02 09:27:46 +02:00
70 changed files with 1571 additions and 795 deletions
+3 -4
View File
@@ -3,14 +3,13 @@ package crypto
foreign import libc "system:c"
HAS_RAND_BYTES :: true
foreign libc {
arc4random_buf :: proc(buf: [^]byte, nbytes: uint) ---
}
@(private)
_rand_bytes :: proc(dst: []byte) {
arc4random_buf(raw_data(dst), len(dst))
}
_has_rand_bytes :: proc() -> bool {
return true
}