24 fuzzed_data_provider.ConsumeIntegralInRange<
unsigned int>(1, 1000),
25 0.999 / fuzzed_data_provider.ConsumeIntegralInRange<
unsigned int>(1, std::numeric_limits<unsigned int>::max())};
26 LIMITED_WHILE(fuzzed_data_provider.remaining_bytes() > 0, 3000)
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();
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
RollingBloomFilter is a probabilistic "keep track of most recently inserted" set. ...
FUZZ_TARGET(rolling_bloom_filter)
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.
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
Seed with a compile time constant of zeros.
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept