Skip to content

Commit

Permalink
doc: minor corrections in random.cpp
Browse files Browse the repository at this point in the history
This should have been part of bitcoin#17151.
  • Loading branch information
fanquake authored and sipa committed Nov 7, 2019
1 parent e65b416 commit db176a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/random.cpp
Expand Up @@ -11,8 +11,8 @@
#include <compat.h> // for Windows API
#include <wincrypt.h>
#endif
#include <logging.h> // for LogPrint()
#include <sync.h> // for WAIT_LOCK
#include <logging.h> // for LogPrintf()
#include <sync.h> // for Mutex
#include <util/time.h> // for GetTime()

#include <stdlib.h>
Expand Down Expand Up @@ -716,7 +716,7 @@ bool Random_SanityCheck()
uint64_t start = GetPerformanceCounter();

/* This does not measure the quality of randomness, but it does test that
* OSRandom() overwrites all 32 bytes of the output given a maximum
* GetOSRand() overwrites all 32 bytes of the output given a maximum
* number of tries.
*/
static const ssize_t MAX_TRIES = 1024;
Expand Down
1 change: 0 additions & 1 deletion src/random.h
Expand Up @@ -52,7 +52,6 @@
* sources used in the 'slow' seeder are included, but also:
* - 256 bits from the hardware RNG (rdseed or rdrand) when available.
* - (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
Expand Down

0 comments on commit db176a4

Please sign in to comment.