aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/crypto.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-05-27 11:33:08 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-05-27 11:33:08 +0300
commitbc4584c1ff6dc54653c780864f36a867855c992e (patch)
treef4819579e573bbd48daad96fc963d1e8583fb473 /src/crypto/crypto.cpp
parentinstalling wallet_api header (diff)
parentMerge pull request #842 (diff)
downloadmonero-bc4584c1ff6dc54653c780864f36a867855c992e.tar.xz
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/crypto/crypto.cpp')
-rw-r--r--src/crypto/crypto.cpp2
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);
}