| 270 | : RandomImpl(seed, TypeTraits<ArrowType>::type_singleton()) {} |
| 271 | |
| 272 | std::shared_ptr<Array> Generate(uint64_t count, int range, double null_prob) { |
| 273 | CType min = std::numeric_limits<CType>::min(); |
| 274 | CType max = min + range; |
| 275 | if (sizeof(CType) < 4 && (range + min) > std::numeric_limits<CType>::max()) { |
| 276 | max = std::numeric_limits<CType>::max(); |
| 277 | } |
| 278 | return generator_.Numeric<ArrowType>(count, min, max, null_prob); |
| 279 | } |
| 280 | }; |
| 281 | |
| 282 | } // namespace compute |
nothing calls this directly
no outgoing calls
no test coverage detected