diff options
author | Guillem Jover <guillem@hadrons.org> | 2018-05-15 00:55:02 +0200 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2018-05-21 04:48:32 +0200 |
commit | a1730c10632b9e1e800db5e280eea576bc9052ec (patch) | |
tree | cfe31a103515ced6f4f4ef8a0a784a6c8c6e8ee7 /src/arc4random.h | |
parent | 6f68c930765d95ab2644c7a1210a0a640fd9d4bf (diff) |
Add Windows support for getentropy() and arc4random()
Import from OpenBSD.
Diffstat (limited to 'src/arc4random.h')
-rw-r--r-- | src/arc4random.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arc4random.h b/src/arc4random.h index 803ef86..812188b 100644 --- a/src/arc4random.h +++ b/src/arc4random.h @@ -36,6 +36,8 @@ getentropy(void *buf, size_t len); #include "arc4random_openbsd.h" #elif defined(__linux__) #include "arc4random_linux.h" +#elif defined(_WIN32) +#include "arc4random_win.h" #else #include "arc4random_unix.h" #endif |