Skip to content

Commit 0ccad08

Browse files
committed
Make env data logging optional
1 parent bb03765 commit 0ccad08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/random.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static void SeedPeriodic(CSHA512& hasher, RNGState& rng) noexcept
517517
// Dynamic environment data (performance monitoring, ...)
518518
auto old_size = hasher.Size();
519519
RandAddDynamicEnv(hasher);
520-
LogPrintf("Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
520+
LogPrint(BCLog::RAND, "Feeding %i bytes of dynamic environment data into RNG\n", hasher.Size() - old_size);
521521

522522
// Strengthen for 10 ms
523523
SeedStrengthen(hasher, rng, 10000);
@@ -537,7 +537,7 @@ static void SeedStartup(CSHA512& hasher, RNGState& rng) noexcept
537537

538538
// Static environment data
539539
RandAddStaticEnv(hasher);
540-
LogPrintf("Feeding %i bytes of environment data into RNG\n", hasher.Size() - old_size);
540+
LogPrint(BCLog::RAND, "Feeding %i bytes of environment data into RNG\n", hasher.Size() - old_size);
541541

542542
// Strengthen for 100 ms
543543
SeedStrengthen(hasher, rng, 100000);

0 commit comments

Comments
 (0)