From 44c909e6b4059ee644031c6b8bb95717d2a6ef12 Mon Sep 17 00:00:00 2001 From: est31 Date: Thu, 6 Aug 2015 04:59:38 +0200 Subject: [PATCH] Initialize random for verification key generation too --- srp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srp.c b/srp.c index 6dc8938..f82ef30 100644 --- a/srp.c +++ b/srp.c @@ -586,6 +586,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)