Permalink
Browse files

Bionic C runtime has secure arc4random

  • Loading branch information...
Nathan Sashihara
Nathan Sashihara committed Mar 10, 2018
1 parent f0e0cdd commit 5e0f8568c3216a4f5bb5d52a82435cb078b68c04
Showing with 2 additions and 0 deletions.
  1. +2 −0 crypto/vibe/crypto/cryptorand.d
@@ -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)

0 comments on commit 5e0f856

Please sign in to comment.