Skip to content

Commit b51bae1

Browse files
fanquakesipa
authored andcommitted
doc: minor corrections in random.cpp
This should have been part of bitcoin#17151.
1 parent 2706162 commit b51bae1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/random.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#include <compat.h> // for Windows API
1212
#include <wincrypt.h>
1313
#endif
14-
#include <logging.h> // for LogPrint()
15-
#include <sync.h> // for WAIT_LOCK
14+
#include <logging.h> // for LogPrintf()
15+
#include <sync.h> // for Mutex
1616
#include <util/time.h> // for GetTime()
1717

1818
#include <stdlib.h>
@@ -716,7 +716,7 @@ bool Random_SanityCheck()
716716
uint64_t start = GetPerformanceCounter();
717717

718718
/* This does not measure the quality of randomness, but it does test that
719-
* OSRandom() overwrites all 32 bytes of the output given a maximum
719+
* GetOSRand() overwrites all 32 bytes of the output given a maximum
720720
* number of tries.
721721
*/
722722
static const ssize_t MAX_TRIES = 1024;

src/random.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
* sources used in the 'slow' seeder are included, but also:
5353
* - 256 bits from the hardware RNG (rdseed or rdrand) when available.
5454
* - (On Windows) Performance monitoring data from the OS.
55-
* - (On Windows) Through OpenSSL, the screen contents.
5655
* - Strengthen the entropy for 100 ms using repeated SHA512.
5756
*
5857
* When mixing in new entropy, H = SHA512(entropy || old_rng_state) is computed, and

0 commit comments

Comments
 (0)