mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
refactor: make GetRand a template, remove GetRandInt
This commit is contained in:
@@ -239,7 +239,7 @@ bool CRollingBloomFilter::contains(Span<const unsigned char> vKey) const
|
||||
|
||||
void CRollingBloomFilter::reset()
|
||||
{
|
||||
nTweak = GetRand(std::numeric_limits<unsigned int>::max());
|
||||
nTweak = GetRand<unsigned int>();
|
||||
nEntriesThisGeneration = 0;
|
||||
nGeneration = 1;
|
||||
std::fill(data.begin(), data.end(), 0);
|
||||
|
||||
Reference in New Issue
Block a user