Skip to content

Commit 27cf995

Browse files
fanquakeFuzzbawls
authored andcommitted
doc: minor corrections in random.cpp
This should have been part of bitcoin#17151.
1 parent fccd2b8 commit 27cf995

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/random.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <wincrypt.h>
1414
#endif
1515
#include "logging.h" // for LogPrint()
16-
#include "sync.h"
16+
#include "sync.h" // for Mutex
1717
#include "utiltime.h" // for GetTime()
1818

1919
#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

-1
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)