MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / RollingBloomHash

Function RollingBloomHash

src/bloom.cpp:244–246  ·  view source on GitHub ↗

Similar to CBloomFilter::Hash */

Source from the content-addressed store, hash-verified

242
243/* Similar to CBloomFilter::Hash */
244static inline uint32_t RollingBloomHash(unsigned int nHashNum, uint32_t nTweak, const std::vector<unsigned char>& vDataToHash) {
245 return MurmurHash3(nHashNum * 0xFBA4C795 + nTweak, vDataToHash);
246}
247
248
249// A replacement for x % n. This assumes that x and n are 32bit integers, and x is a uniformly random distributed 32bit value

Callers 2

insertMethod · 0.85
containsMethod · 0.85

Calls 1

MurmurHash3Function · 0.85

Tested by

no test coverage detected