MCPcopy Create free account
hub / github.com/citp/BlockSci / nthHash

Function nthHash

tools/parser/bloom_filter.cpp:100–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100inline int64_t nthHash(uint8_t n, uint64_t hashA, uint64_t hashB, int64_t filterSize) {
101 return static_cast<int64_t>((hashA + n * hashB) % static_cast<uint64_t>(filterSize));
102}
103
104void BloomFilter::add(const uint8_t *item, int length) {
105 auto hashValues = hash(item, length);

Callers 2

addMethod · 0.85
possiblyContainsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected