Home
last modified time | relevance | path

Searched refs:GetRandomIndex (Results 1 – 1 of 1) sorted by relevance

/external/libprotobuf-mutator/src/
Dmutator.cc64 size_t GetRandomIndex(RandomEngine* random, size_t count) { in GetRandomIndex() function
72 size_t bit = GetRandomIndex(random, size * 8); in FlipBit()
85 return GetRandomIndex(random, n) == 0; in GetRandomBool()
217 oneof->field(GetRandomIndex(random_, oneof->field_count())); in SampleImpl()
235 size_t random_index = GetRandomIndex(random_, field_size + 1); in SampleImpl()
240 size_t random_index = GetRandomIndex(random_, field_size); in SampleImpl()
345 GetRandomIndex(random_, field_size)); in SampleImpl()
759 return (index + 1 + GetRandomIndex(&random_, item_count - 1)) % item_count; in MutateEnum()
767 result.erase(GetRandomIndex(&random_, result.size()), 1); in MutateString()
773 size_t index = GetRandomIndex(&random_, result.size() + 1); in MutateString()
[all …]