diff options
Diffstat (limited to 'entropy.c')
-rw-r--r-- | entropy.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -24,6 +24,8 @@ | |||
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | 26 | ||
27 | #ifdef WITH_OPENSSL | ||
28 | |||
27 | #include <sys/types.h> | 29 | #include <sys/types.h> |
28 | #include <sys/socket.h> | 30 | #include <sys/socket.h> |
29 | #ifdef HAVE_SYS_UN_H | 31 | #ifdef HAVE_SYS_UN_H |
@@ -230,3 +232,13 @@ seed_rng(void) | |||
230 | if (RAND_status() != 1) | 232 | if (RAND_status() != 1) |
231 | fatal("PRNG is not seeded"); | 233 | fatal("PRNG is not seeded"); |
232 | } | 234 | } |
235 | |||
236 | #else /* WITH_OPENSSL */ | ||
237 | |||
238 | /* Handled in arc4random() */ | ||
239 | void | ||
240 | seed_rng(void) | ||
241 | { | ||
242 | } | ||
243 | |||
244 | #endif /* WITH_OPENSSL */ | ||