| 84 | |
| 85 | template <typename T> |
| 86 | T RandomUniformInteger(const T min, const T max) { |
| 87 | if (COLMAP_PREDICT_FALSE(PRNG == nullptr)) { |
| 88 | SetPRNGSeed(); |
| 89 | } |
| 90 | |
| 91 | std::uniform_int_distribution<T> distribution(min, max); |
| 92 | return distribution(*PRNG); |
| 93 | } |
| 94 | |
| 95 | template <typename T> |
| 96 | T RandomUniformReal(const T min, const T max) { |