Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initialize random for verification key generation too
  • Loading branch information
est31 committed Aug 6, 2015
1 parent bcf47bc commit 49cf66d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/srp.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 49cf66d

Please sign in to comment.