| 50 | } |
| 51 | |
| 52 | inline 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 | |
| 58 | void CBloomFilter::insert(const std::vector<unsigned char>& vKey) |
| 59 | { |
nothing calls this directly
no test coverage detected