mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 11:44:14 +01:00
Make env data logging optional
This commit is contained in:
@@ -517,7 +517,7 @@ static void SeedPeriodic(CSHA512& hasher, RNGState& rng) noexcept
|
|||||||
// Dynamic environment data (performance monitoring, ...)
|
// Dynamic environment data (performance monitoring, ...)
|
||||||
auto old_size = hasher.Size();
|
auto old_size = hasher.Size();
|
||||||
RandAddDynamicEnv(hasher);
|
RandAddDynamicEnv(hasher);
|
||||||
LogPrintf("Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
|
LogPrint(BCLog::RAND, "Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
|
||||||
|
|
||||||
// Strengthen for 10 ms
|
// Strengthen for 10 ms
|
||||||
SeedStrengthen(hasher, rng, 10000);
|
SeedStrengthen(hasher, rng, 10000);
|
||||||
@@ -537,7 +537,7 @@ static void SeedStartup(CSHA512& hasher, RNGState& rng) noexcept
|
|||||||
|
|
||||||
// Static environment data
|
// Static environment data
|
||||||
RandAddStaticEnv(hasher);
|
RandAddStaticEnv(hasher);
|
||||||
LogPrintf("Feeding %i bytes of environment data into RNG\n", hasher.Size() - old_size);
|
LogPrint(BCLog::RAND, "Feeding %i bytes of environment data into RNG\n", hasher.Size() - old_size);
|
||||||
|
|
||||||
// Strengthen for 100 ms
|
// Strengthen for 100 ms
|
||||||
SeedStrengthen(hasher, rng, 100000);
|
SeedStrengthen(hasher, rng, 100000);
|
||||||
|
|||||||
Reference in New Issue
Block a user