From: "Diaz de Grenu, Jose" <Jose.DiazdeGrenu@digi.com>
Date: Tue, 12 Jul 2016 17:47:24 +0200
Subject: [PATCH] openssl_helper: use /dev/urandom as seed source

This is needed in order to avoid indefinitely blocking.

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
---
 code/cst/code/common/src/openssl_helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/cst/code/common/src/openssl_helper.c b/code/cst/code/common/src/openssl_helper.c
index 871cf55..b62c8a8 100755
--- a/code/cst/code/common/src/openssl_helper.c
+++ b/code/cst/code/common/src/openssl_helper.c
@@ -414,7 +414,7 @@ void print_version(void)
 ---------------------------*/
 uint32_t seed_prng(uint32_t bytes)
 {
-    return RAND_load_file("/dev/random", bytes);
+    return RAND_load_file("/dev/urandom", bytes);
 }
 
 
