aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/srp.cpp2
1 files changed, 2 insertions, 0 deletions
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)