Skip to content

Commit

Permalink
Merge pull request #4074
Browse files Browse the repository at this point in the history
ef649f9 crypto: remove unused unsafe random scalar generator (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jul 19, 2018
2 parents 5fad1c5 + ef649f9 commit 326437c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/crypto/crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 326437c

Please sign in to comment.