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

Method GenerateOptions

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

Source from the content-addressed store, hash-verified

98 using FactoryType = GeneratorFactory<ValueType, DistributionType>;
99
100 GenerateOptions(SeedType seed, ValueType min, ValueType max, double probability,
101 double nan_probability = 0.0)
102 : generator_factory_(FactoryType(min, max)),
103 seed_(seed),
104 probability_(probability),
105 nan_probability_(nan_probability) {}
106
107 void GenerateData(uint8_t* buffer, size_t n) {
108 GenerateTypedData(reinterpret_cast<PhysicalType*>(buffer), n);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected