We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2dbc7d commit df9e15fCopy full SHA for df9e15f
src/bloom.cpp
@@ -14,6 +14,7 @@
14
#include <math.h>
15
#include <stdlib.h>
16
17
+#include <algorithm>
18
19
#define LN2SQUARED 0.4804530139182014246671025263266649717305529515945455
20
#define LN2 0.6931471805599453094172321214581765680755001343602552
@@ -304,7 +305,5 @@ void CRollingBloomFilter::reset()
304
305
nTweak = GetRand(std::numeric_limits<unsigned int>::max());
306
nEntriesThisGeneration = 0;
307
nGeneration = 1;
- for (std::vector<uint64_t>::iterator it = data.begin(); it != data.end(); it++) {
308
- *it = 0;
309
- }
+ std::fill(data.begin(), data.end(), 0);
310
}
0 commit comments