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

Function RandomIntegers

cpp/src/arrow/type_benchmark.cc:204–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204std::vector<int32_t> RandomIntegers() {
205 std::default_random_engine gen(42);
206 // Make 42 extremely unlikely (to make error Status allocation negligible)
207 std::uniform_int_distribution<int32_t> dist(0, 100000);
208
209 std::vector<int32_t> integers(6000);
210 std::generate(integers.begin(), integers.end(), [&]() { return dist(gen); });
211 return integers;
212}
213
214inline int32_t NoError(int32_t v) { return v + 1; }
215

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