diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-07-04 22:17:20 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-07-05 09:18:01 +0100 |
commit | 61caab8a8c8a4e4239216c861c4d1eba5bcfd76e (patch) | |
tree | be26e7581f6fecdbb62fbcf7b661bb8ac0ba254b /src/crypto/crypto.h | |
parent | Merge pull request #4094 (diff) | |
download | monero-61caab8a8c8a4e4239216c861c4d1eba5bcfd76e.tar.xz |
crypto: remove slight bias in key generation due to modulo
Diffstat (limited to 'src/crypto/crypto.h')
-rw-r--r-- | src/crypto/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h index 9ea0f2ec0..449af8f6d 100644 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -99,6 +99,7 @@ namespace crypto { #pragma pack(pop) void hash_to_scalar(const void *data, size_t length, ec_scalar &res); + void random32_unbiased(unsigned char *bytes); static_assert(sizeof(ec_point) == 32 && sizeof(ec_scalar) == 32 && sizeof(public_key) == 32 && sizeof(secret_key) == 32 && |