23 0.999 / fuzzed_data_provider.
ConsumeIntegralInRange<
unsigned int>(1, std::numeric_limits<unsigned int>::max())};
30 (void)rolling_bloom_filter.contains(b);
31 rolling_bloom_filter.insert(b);
32 const bool present = rolling_bloom_filter.contains(b);
37 (void)rolling_bloom_filter.contains(u256);
38 rolling_bloom_filter.insert(u256);
39 const bool present = rolling_bloom_filter.contains(u256);
43 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)
std::vector< uint8_t > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)