MCPcopy Create free account
hub / github.com/apache/arrow / operator()

Method operator()

cpp/src/arrow/testing/random.cc:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 GeneratorFactory(ValueType min, ValueType max) : min_(min), max_(max) {}
67
68 auto operator()(pcg32* rng) const {
69 return [dist = DistributionType(min_, max_), rng]() mutable {
70 return static_cast<ValueType>(dist(*rng));
71 };
72 }
73
74 private:
75 ValueType min_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected