summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/util.c b/util.c
index 662aa23a96d1..83d31f70eda0 100644
--- a/util.c
+++ b/util.c
@@ -346,6 +346,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)){