aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-28 16:35:01 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-28 16:44:13 +0100
commitef649f998dd45b2e42985188cb9a2cbdcf9fa3c1 (patch)
tree0310555c3a3a32eb5e88164d497e828801f51f52 /src/crypto
parentMerge pull request #4067 (diff)
downloadmonero-ef649f998dd45b2e42985188cb9a2cbdcf9fa3c1.tar.xz
crypto: remove unused unsafe random scalar generator
Diffstat (limited to 'src/crypto')
-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);