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

Method Hash

src/bloom.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52inline unsigned int CBloomFilter::Hash(unsigned int nHashNum, const std::vector<unsigned char>& vDataToHash) const
53{
54 // 0xFBA4C795 chosen as it guarantees a reasonable bit difference between nHashNum values.
55 return MurmurHash3(nHashNum * 0xFBA4C795 + nTweak, vDataToHash) % (vData.size() * 8);
56}
57
58void CBloomFilter::insert(const std::vector<unsigned char>& vKey)
59{

Callers

nothing calls this directly

Calls 2

MurmurHash3Function · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected