Skip to content
Snippets Groups Projects
Commit 49cf66d7 authored by est31's avatar est31
Browse files

Initialize random for verification key generation too

parent bcf47bc6
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment