mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-31 02:46:01 +02:00
random: get rid of GetRand by inlining
This commit is contained in:
@@ -239,7 +239,7 @@ bool CRollingBloomFilter::contains(Span<const unsigned char> vKey) const
|
||||
|
||||
void CRollingBloomFilter::reset()
|
||||
{
|
||||
nTweak = GetRand<unsigned int>();
|
||||
nTweak = FastRandomContext().rand<unsigned int>();
|
||||
nEntriesThisGeneration = 0;
|
||||
nGeneration = 1;
|
||||
std::fill(data.begin(), data.end(), 0);
|
||||
|
||||
Reference in New Issue
Block a user