diff options
author | est31 <MTest31@outlook.com> | 2015-08-06 04:59:38 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-08-06 05:48:07 +0200 |
commit | 49cf66d78566de128ec8879044e9d9e2fac0ba1c (patch) | |
tree | a15a6ea655b65f7be25d98fa713410cafd710e11 /src/util | |
parent | bcf47bc67cf3e1c2f410a81e26ceab1bdab06b4a (diff) | |
download | minetest-49cf66d78566de128ec8879044e9d9e2fac0ba1c.tar.gz minetest-49cf66d78566de128ec8879044e9d9e2fac0ba1c.tar.bz2 minetest-49cf66d78566de128ec8879044e9d9e2fac0ba1c.zip |
Initialize random for verification key generation too
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/srp.cpp | 2 |
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) |