mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
Merge pull request #4074
ef649f9
crypto: remove unused unsafe random scalar generator (moneromooo-monero)
This commit is contained in:
commit
326437c5ff
@ -94,12 +94,6 @@ namespace crypto {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* generate a random 32-byte (256-bit) integer and copy it to res */
|
/* 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) {
|
static inline void random_scalar(ec_scalar &res) {
|
||||||
unsigned char tmp[64];
|
unsigned char tmp[64];
|
||||||
generate_random_bytes_thread_safe(64, tmp);
|
generate_random_bytes_thread_safe(64, tmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user