projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcf47bc
)
Initialize random for verification key generation too
author
est31
<MTest31@outlook.com>
Thu, 6 Aug 2015 02:59:38 +0000
(
04:59
+0200)
committer
est31
<MTest31@outlook.com>
Thu, 6 Aug 2015 03:48:07 +0000
(
05:48
+0200)
src/util/srp.cpp
patch
|
blob
|
history
diff --git
a/src/util/srp.cpp
b/src/util/srp.cpp
index 0d3ddf2789248a9461543cfe093c97c75f719d1b..94426db92950270121d11349948b135dffab7d94 100644
(file)
--- 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)