mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Initialize random for verification key generation too
This commit is contained in:
parent
bcf47bc67c
commit
49cf66d785
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user