diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-06-06 09:50:56 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-08-22 11:12:57 +0000 |
commit | 1dc3b1a516332f12a4bd8fd8dd80695a003d1d98 (patch) | |
tree | 5a4eb58fefaebc19a2b22a80da46fbf9cb71b87b /src/crypto/crypto.h | |
parent | Merge pull request #5635 (diff) | |
download | monero-1dc3b1a516332f12a4bd8fd8dd80695a003d1d98.tar.xz |
wallet: add --extra-entropy command line flag
It lets the user add custom entropy to the PRNG.
It does this by hashing the new data and xoring the resulting
hash with the PRNG state.
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 bac456f60..8ce321f71 100644 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -147,6 +147,7 @@ namespace crypto { }; void generate_random_bytes_thread_safe(size_t N, uint8_t *bytes); + void add_extra_entropy_thread_safe(const void *ptr, size_t bytes); /* Generate N random bytes */ |