crypto: remove unused unsafe random scalar generator

pull/4074/head
moneromooo-monero 6 years ago
parent a9b83f5a6e
commit ef649f998d
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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);

Loading…
Cancel
Save