25 0.999 / fuzzed_data_provider.
ConsumeIntegralInRange<
unsigned int>(1, std::numeric_limits<unsigned int>::max())};
32 (void)rolling_bloom_filter.contains(b);
33 rolling_bloom_filter.insert(b);
34 const bool present = rolling_bloom_filter.contains(b);
39 (void)rolling_bloom_filter.contains(u256);
40 rolling_bloom_filter.insert(u256);
41 const bool present = rolling_bloom_filter.contains(u256);
45 rolling_bloom_filter.reset();
RollingBloomFilter is a probabilistic "keep track of most recently inserted" set.
T ConsumeIntegralInRange(T min, T max)
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
FUZZ_TARGET(rolling_bloom_filter)
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
std::vector< B > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
void SeedRandomStateForTest(SeedRand seedtype)
Seed the global RNG state for testing and log the seed value.
@ ZEROS
Seed with a compile time constant of zeros.