Home
last modified time | relevance | path

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

/external/libprotobuf-mutator/src/
Dmutator.cc55 size_t GetRandomIndex(RandomEngine* random, size_t count) { in GetRandomIndex() function
63 size_t bit = GetRandomIndex(random, size * 8); in FlipBit()
76 return GetRandomIndex(random, n) == 0; in GetRandomBool()
184 oneof->field(GetRandomIndex(random_, oneof->field_count())); in Sample()
208 {{message, field, GetRandomIndex(random_, field_size + 1)}, in Sample()
212 size_t random_index = GetRandomIndex(random_, field_size); in Sample()
314 GetRandomIndex(random_, field_size)); in Sample()
530 if (int k = GetRandomIndex(random_, field_size2 - j)) { in CrossOverImpl()
535 int keep = GetRandomIndex(random_, field_size2 + 1); in CrossOverImpl()
540 int cross = GetRandomIndex(random_, std::min(keep, remove) + 1); in CrossOverImpl()
[all …]