summaryrefslogtreecommitdiff
path: root/src/arc4random.h
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2018-05-15 00:41:26 +0200
committerGuillem Jover <guillem@hadrons.org>2018-05-21 04:47:28 +0200
commit3d88c999b4a0ac2820c84732262ba7a0ad44e421 (patch)
tree4f0b6402ea1e8a0c6df6d470b3eed074ba9a986c /src/arc4random.h
parente42381dc51065e6d48ae982a01888dddde26ef7b (diff)
Update arc4random() headers from OpenBSD
Split Linux support into its own header separate from the generic Unix to fix a Linux-specific issue with clone(). Reset rsp to NULL on failure.
Diffstat (limited to 'src/arc4random.h')
-rw-r--r--src/arc4random.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arc4random.h b/src/arc4random.h
index 073f90e..803ef86 100644
--- a/src/arc4random.h
+++ b/src/arc4random.h
@@ -34,6 +34,8 @@ getentropy(void *buf, size_t len);
#if defined(__OpenBSD__)
#include "arc4random_openbsd.h"
+#elif defined(__linux__)
+#include "arc4random_linux.h"
#else
#include "arc4random_unix.h"
#endif