| 326 | RandomArrayGenerator* rng_; |
| 327 | |
| 328 | static uint64_t MaxDecimalInteger(int32_t digits) { |
| 329 | // Need to decrement *after* the cast to uint64_t because, while |
| 330 | // 10**x is exactly representable in a double for x <= 19, |
| 331 | // 10**x - 1 is not. |
| 332 | return static_cast<uint64_t>(std::ceil(std::pow(10.0, digits))) - 1; |
| 333 | } |
| 334 | |
| 335 | std::shared_ptr<Array> MakeRandomArray(int64_t size, double null_probability, |
| 336 | int64_t alignment, MemoryPool* memory_pool) { |
nothing calls this directly
no outgoing calls
no test coverage detected