MCPcopy Create free account
hub / github.com/apache/arrow / RandomShuffle

Method RandomShuffle

cpp/src/arrow/util/async_generator_test.cc:1987–1990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1985class SequencerTestFixture : public GeneratorTestFixture {
1986 protected:
1987 void RandomShuffle(std::vector<TestInt>& values) {
1988 std::default_random_engine gen(seed_++);
1989 std::shuffle(values.begin(), values.end(), gen);
1990 }
1991
1992 int seed_ = 42;
1993 std::function<bool(const TestInt&, const TestInt&)> cmp_ =

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected