aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-19 14:08:56 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-19 14:08:56 -0500
commit326437c5ff8213c402fdb27fe78103f021c98d05 (patch)
tree5d8e053604033088c588681faa18f9867f946d12 /src
parentMerge pull request #4073 (diff)
parentcrypto: remove unused unsafe random scalar generator (diff)
downloadmonero-326437c5ff8213c402fdb27fe78103f021c98d05.tar.xz
Merge pull request #4074
ef649f9 crypto: remove unused unsafe random scalar generator (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/crypto/crypto.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/crypto/crypto.cpp b/src/crypto/crypto.cpp
index f4ef751d3..0fd6d9363 100644
--- a/src/crypto/crypto.cpp
+++ b/src/crypto/crypto.cpp
@@ -94,12 +94,6 @@ namespace crypto {
}
/* generate a random 32-byte (256-bit) integer and copy it to res */
- static inline void random_scalar_not_thread_safe(ec_scalar &res) {
- unsigned char tmp[64];
- generate_random_bytes_not_thread_safe(64, tmp);
- sc_reduce(tmp);
- memcpy(&res, tmp, 32);
- }
static inline void random_scalar(ec_scalar &res) {
unsigned char tmp[64];
generate_random_bytes_thread_safe(64, tmp);