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

Function RandomIntegers

cpp/src/arrow/type_benchmark.cc:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190std::vector<int32_t> RandomIntegers() {
191 std::default_random_engine gen(42);
192 // Make 42 extremely unlikely (to make error Status allocation negligible)
193 std::uniform_int_distribution<int32_t> dist(0, 100000);
194
195 std::vector<int32_t> integers(6000);
196 std::generate(integers.begin(), integers.end(), [&]() { return dist(gen); });
197 return integers;
198}
199
200inline int32_t NoError(int32_t v) { return v + 1; }
201

Callers 10

ErrorSchemeNoErrorFunction · 0.85
ErrorSchemeBoolFunction · 0.85
ErrorSchemeBoolNoInlineFunction · 0.85
ErrorSchemeStatusFunction · 0.85
ErrorSchemeResultFunction · 0.85
ErrorSchemeExceptionFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected