MCPcopy Create free account
hub / github.com/ElementsProject/elements / RollingBloomHash

Function RollingBloomHash

src/common/bloom.cpp:190–193  ·  view source on GitHub ↗

Similar to CBloomFilter::Hash */

Source from the content-addressed store, hash-verified

188
189/* Similar to CBloomFilter::Hash */
190static inline uint32_t RollingBloomHash(unsigned int nHashNum, uint32_t nTweak, Span<const unsigned char> vDataToHash)
191{
192 return MurmurHash3(nHashNum * 0xFBA4C795 + nTweak, vDataToHash);
193}
194
195void CRollingBloomFilter::insert(Span<const unsigned char> vKey)
196{

Callers 2

insertMethod · 0.85
containsMethod · 0.85

Calls 1

MurmurHash3Function · 0.85

Tested by

no test coverage detected