Fix in MyUniformRandomNumberGenerator fixing compilation on Visual Studio 2026
diff --git a/src/Common.h b/src/Common.h index f76e57f..87cfbb4 100644 --- a/src/Common.h +++ b/src/Common.h
@@ -280,8 +280,8 @@ { typedef uint32_t result_type; MyUniformRandomNumberGenerator(RandomNumberGenerator& gen) : m_Gen(gen) { } - static uint32_t min() { return 0; } - static uint32_t max() { return UINT32_MAX; } + static constexpr uint32_t min() { return 0; } + static constexpr uint32_t max() { return UINT32_MAX; } uint32_t operator()() { return m_Gen.Generate(); } private: