From 49cf66d78566de128ec8879044e9d9e2fac0ba1c Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 6 Aug 2015 04:59:38 +0200 Subject: Initialize random for verification key generation too --- src/util/srp.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util') diff --git a/src/util/srp.cpp b/src/util/srp.cpp index 0d3ddf278..94426db92 100644 --- a/src/util/srp.cpp +++ b/src/util/srp.cpp @@ -593,6 +593,8 @@ void srp_create_salted_verification_key( SRP_HashAlgorithm alg, if(!ng) goto cleanup_and_exit; + init_random(); /* Only happens once */ + if (*bytes_s == NULL) { *len_s = 16; if (RAND_BUFF_MAX - g_rand_idx < 16) -- cgit v1.2.3