diff options
author | Brent Cook <busterb@gmail.com> | 2015-01-21 06:14:24 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2015-01-21 06:14:24 -0600 |
commit | a2233651277a50955cdc4c7810da7a12e4e33551 (patch) | |
tree | 5d48e874577eb6f0c955bfa6ddfdae04d13af406 /crypto/compat | |
parent | ec81c28219b3d3234ddf0af12d0579efa1a3d2a6 (diff) | |
download | portable-a2233651277a50955cdc4c7810da7a12e4e33551.tar.gz portable-a2233651277a50955cdc4c7810da7a12e4e33551.tar.bz2 portable-a2233651277a50955cdc4c7810da7a12e4e33551.zip |
add NetBSD shims for arc4random
The current NetBSD release, 6.1.5, fails to reseed arc4random fork. Work
around it by providing arc4random/getentropy shims. Revisit when NetBSD
7 is available.
Diffstat (limited to 'crypto/compat')
-rw-r--r-- | crypto/compat/arc4random.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/compat/arc4random.h b/crypto/compat/arc4random.h index ed812ba..ce1bbea 100644 --- a/crypto/compat/arc4random.h +++ b/crypto/compat/arc4random.h | |||
@@ -12,6 +12,9 @@ | |||
12 | #elif defined(__linux__) | 12 | #elif defined(__linux__) |
13 | #include "arc4random_linux.h" | 13 | #include "arc4random_linux.h" |
14 | 14 | ||
15 | #elif defined(__NetBSD__) | ||
16 | #include "arc4random_netbsd.h" | ||
17 | |||
15 | #elif defined(__APPLE__) | 18 | #elif defined(__APPLE__) |
16 | #include "arc4random_osx.h" | 19 | #include "arc4random_osx.h" |
17 | 20 | ||