diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-05-17 19:09:56 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-05-17 19:09:57 +0200 |
commit | a837c9cb0feeb7c8c4e616df64cbf650e38355f7 (patch) | |
tree | 504e043cc8156e1ec27d0c9c34bcefb0beb271f4 /src/crypto/crypto.cpp | |
parent | Merge pull request #840 (diff) | |
parent | crypto: make clear generate_random_bytes is not thread safe (diff) | |
download | monero-a837c9cb0feeb7c8c4e616df64cbf650e38355f7.tar.xz |
Merge pull request #842
d539be3 crypto: make clear generate_random_bytes is not thread safe (moneromooo-monero)
Diffstat (limited to 'src/crypto/crypto.cpp')
-rw-r--r-- | src/crypto/crypto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp index e47aab0f7..e251d0ec2 100644 --- a/src/crypto/crypto.cpp +++ b/src/crypto/crypto.cpp @@ -83,7 +83,7 @@ namespace crypto { /* generate a random 32-byte (256-bit) integer and copy it to res */ static inline void random_scalar(ec_scalar &res) { unsigned char tmp[64]; - generate_random_bytes(64, tmp); + generate_random_bytes_not_thread_safe(64, tmp); sc_reduce(tmp); memcpy(&res, tmp, 32); } |