mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
Merge bitcoin/bitcoin#31124: util: Remove RandAddSeedPerfmon
9bb92c0e7futil: Remove RandAddSeedPerfmon (Hodlinator) Pull request description: `RegQueryValueExA(HKEY_PERFORMANCE_DATA, ...)` sometimes hangs *bitcoind.exe* on Windows during startup, at least on CI. We have other sources of entropy to seed randomness with on Windows, so should be alright removing this. Might resurrect if less drastic fix is found. Hopefully sufficient to fix #30390. CI debugged with temporary Windows stack trace dumping + Symbols in #30956. ACKs for top commit: achow101: ACK9bb92c0e7ffanquake: ACK9bb92c0e7fhebasto: ACK9bb92c0e7f, I have reviewed the code and it looks OK. laanwj: Code review ACK9bb92c0e7fTree-SHA512: d3f26b4dd0519ef957f23abaffc6be1fed339eae756aed18042422fc6f0bba4e8fa9a44bf903e54f72747e2d0108146c18fd80576d95fc20690a2daf9c83689d
This commit is contained in:
@@ -599,7 +599,7 @@ void SeedPeriodic(CSHA512& hasher, RNGState& rng) noexcept
|
||||
// Add the events hasher into the mix
|
||||
rng.SeedEvents(hasher);
|
||||
|
||||
// Dynamic environment data (performance monitoring, ...)
|
||||
// Dynamic environment data (clocks, resource usage, ...)
|
||||
auto old_size = hasher.Size();
|
||||
RandAddDynamicEnv(hasher);
|
||||
LogDebug(BCLog::RAND, "Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
|
||||
@@ -616,7 +616,7 @@ void SeedStartup(CSHA512& hasher, RNGState& rng) noexcept
|
||||
// Everything that the 'slow' seeder includes.
|
||||
SeedSlow(hasher, rng);
|
||||
|
||||
// Dynamic environment data (performance monitoring, ...)
|
||||
// Dynamic environment data (clocks, resource usage, ...)
|
||||
auto old_size = hasher.Size();
|
||||
RandAddDynamicEnv(hasher);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user