File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments