Changeset View
Changeset View
Standalone View
Standalone View
src/random.cpp
Show First 20 Lines • Show All 645 Lines • ▼ Show 20 Lines | static void SeedSleep(CSHA512 &hasher, RNGState &rng) { | ||||
// Windows performance monitor data (once every 10 minutes) | // Windows performance monitor data (once every 10 minutes) | ||||
RandAddSeedPerfmon(hasher); | RandAddSeedPerfmon(hasher); | ||||
// Strengthen | // Strengthen | ||||
SeedStrengthen(hasher, rng); | SeedStrengthen(hasher, rng); | ||||
} | } | ||||
static void SeedStartup(CSHA512 &hasher, RNGState &rng) noexcept { | static void SeedStartup(CSHA512 &hasher, RNGState &rng) noexcept { | ||||
#ifdef WIN32 | |||||
RAND_screen(); | |||||
#endif | |||||
// Gather 256 bits of hardware randomness, if available | // Gather 256 bits of hardware randomness, if available | ||||
SeedHardwareSlow(hasher); | SeedHardwareSlow(hasher); | ||||
// Everything that the 'slow' seeder includes. | // Everything that the 'slow' seeder includes. | ||||
SeedSlow(hasher); | SeedSlow(hasher); | ||||
// Windows performance monitor data. | // Windows performance monitor data. | ||||
RandAddSeedPerfmon(hasher); | RandAddSeedPerfmon(hasher); | ||||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |