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.
This commit is contained in:
Brent Cook
2015-01-21 06:14:24 -06:00
parent ec81c28219
commit a223365127
3 changed files with 22 additions and 8 deletions

View File

@@ -12,6 +12,9 @@
#elif defined(__linux__)
#include "arc4random_linux.h"
#elif defined(__NetBSD__)
#include "arc4random_netbsd.h"
#elif defined(__APPLE__)
#include "arc4random_osx.h"