From 14abf170c2b39cd45fce621bdd0c905f444f5bd1 Mon Sep 17 00:00:00 2001
From: Guus Sliepen <guus@tinc-vpn.org>
Date: Thu, 11 Oct 2018 19:47:15 +0200
Subject: [PATCH] Remove the call to RAND_load_file().

It might have been necessary for some very old version of OpenSSL, but
the currently minimum required version for tinc will do a proper
initialization of its PRNG automatically. LibreSSL of course does the
right thing too, and its RAND_load_file() is just a dummy.
---
 src/tincd.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/tincd.c b/src/tincd.c
index b4704c47..7b882c7a 100644
--- a/src/tincd.c
+++ b/src/tincd.c
@@ -685,13 +685,6 @@ int main(int argc, char **argv) {
 
 	init_configuration(&config_tree);
 
-	/* Slllluuuuuuurrrrp! */
-
-	if(RAND_load_file("/dev/urandom", 1024) != 1024) {
-		logger(LOG_ERR, "Error initializing RNG!");
-		return 1;
-	}
-
 	ENGINE_load_builtin_engines();
 	ENGINE_register_all_complete();
 
-- 
2.39.5