diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2019-01-21 13:25:14 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2019-05-06 15:15:04 -0700 |
commit | 3cb9ce85d0c6d01217babf0df7efc2eabde1b12f (patch) | |
tree | e74fa04bb8c7dc07f58b1c4cc86dc0fb6a99f51b | |
parent | 1d207bc46f995ad3b5ae89bb504affaca09d10b1 (diff) | |
download | bitcoin-3cb9ce85d0c6d01217babf0df7efc2eabde1b12f.tar.xz |
Document strenghtening
-rw-r--r-- | src/random.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/random.h b/src/random.h index 4c73f3822a..884bff48e1 100644 --- a/src/random.h +++ b/src/random.h @@ -43,6 +43,7 @@ * - RandAddSeedSleep() seeds everything that fast seeding includes, but additionally: * - A high-precision timestamp before and after sleeping 1ms. * - (On Windows) Once every 10 minutes, performance monitoring data from the OS. + - - Once every minute, strengthen the entropy for 10 ms using repeated SHA512. * These just exploit the fact the system is idle to improve the quality of the RNG * slightly. * @@ -50,6 +51,7 @@ * sources used in the 'slow' seeder are included, but also: * - (On Windows) Performance monitoring data from the OS. * - (On Windows) Through OpenSSL, the screen contents. + * - Strengthen the entropy for 100 ms using repeated SHA512. * * When mixing in new entropy, H = SHA512(entropy || old_rng_state) is computed, and * (up to) the first 32 bytes of H are produced as output, while the last 32 bytes |