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

Method Hash

src/bloom.cpp:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

MurmurHash3Function · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected