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

Function MakeRandomInt64Array

cpp/src/arrow/ipc/test_common.cc:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93Status MakeRandomInt64Array(int64_t length, bool include_nulls, MemoryPool* pool,
94 std::shared_ptr<Array>* out, uint32_t seed) {
95 random::RandomArrayGenerator rand(seed);
96 const double null_probability = include_nulls ? 0.5 : 0.0;
97
98 *out = rand.Int64(length, 0, 1000, null_probability);
99
100 return Status::OK();
101}
102
103namespace {
104

Callers 1

Calls 2

OKFunction · 0.50
Int64Method · 0.45

Tested by

no test coverage detected