|
|
@ -34,7 +34,7 @@ CBloomFilter::CBloomFilter(unsigned int nElements, double nFPRate, unsigned int |
|
|
|
* See https://en.wikipedia.org/wiki/Bloom_filter for an explanation of these formulas
|
|
|
|
* See https://en.wikipedia.org/wiki/Bloom_filter for an explanation of these formulas
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
isFull(false), |
|
|
|
isFull(false), |
|
|
|
isEmpty(false), |
|
|
|
isEmpty(true), |
|
|
|
nHashFuncs(min((unsigned int)(vData.size() * 8 / nElements * LN2), MAX_HASH_FUNCS)), |
|
|
|
nHashFuncs(min((unsigned int)(vData.size() * 8 / nElements * LN2), MAX_HASH_FUNCS)), |
|
|
|
nTweak(nTweakIn), |
|
|
|
nTweak(nTweakIn), |
|
|
|
nFlags(nFlagsIn) |
|
|
|
nFlags(nFlagsIn) |
|
|
|