Skip to content

Commit

Permalink
Bionic C runtime has secure arc4random
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Sashihara committed Mar 10, 2018
1 parent f0e0cdd commit 5e0f856
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/vibe/crypto/cryptorand.d
Expand Up @@ -90,6 +90,8 @@ static if (LinuxMaybeHasGetrandom)
private extern(C) int syscall(size_t ident, size_t n, size_t arg1, size_t arg2) @nogc nothrow;
}

version (CRuntime_Bionic)
version = secure_arc4random;//ChaCha20
version (OSX)
version = secure_arc4random;//AES
version (OpenBSD)
Expand Down

0 comments on commit 5e0f856

Please sign in to comment.