aboutsummaryrefslogtreecommitdiff
path: root/contrib/ldns/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ldns/util.c')
-rw-r--r--contrib/ldns/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/ldns/util.c b/contrib/ldns/util.c
index ab51a9912165..a634203e4e18 100644
--- a/contrib/ldns/util.c
+++ b/contrib/ldns/util.c
@@ -347,6 +347,11 @@ ldns_init_random(FILE *fd, unsigned int size)
unsigned int seed_i;
struct timeval tv;
+#ifdef HAVE_SSL
+ if(RAND_status() == 1)
+ /* already seeded */
+ return 0;
+#endif
/* we'll need at least sizeof(unsigned int) bytes for the
standard prng seed */
if (size < (unsigned int) sizeof(seed_i)){