From 1dc3b1a516332f12a4bd8fd8dd80695a003d1d98 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 6 Jun 2019 09:50:56 +0000 Subject: 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. --- src/crypto/random.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crypto/random.h') diff --git a/src/crypto/random.h b/src/crypto/random.h index ccb9f4853..21a66d776 100644 --- a/src/crypto/random.h +++ b/src/crypto/random.h @@ -33,3 +33,4 @@ #include void generate_random_bytes_not_thread_safe(size_t n, void *result); +void add_extra_entropy_not_thread_safe(const void *ptr, size_t bytes); -- cgit v1.2.3