Lines Matching refs:GetRandomIndex
64 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()
774 result.insert(result.begin() + index, GetRandomIndex(&random_, 1 << 8)); in MutateString()
780 result.push_back(GetRandomIndex(&random_, 1 << 8)); in MutateString()