| 53 | } |
| 54 | |
| 55 | inline 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 | |
| 61 | void CBloomFilter::insert(const vector<unsigned char>& vKey) |
| 62 | { |
nothing calls this directly
no test coverage detected