diff --git a/src/esprandom.h b/src/esprandom.h index 7837070..9152868 100644 --- a/src/esprandom.h +++ b/src/esprandom.h @@ -16,8 +16,8 @@ public: result_type operator()() const { return esp_random(); } double entropy() const { return 1.; } - static result_type min() { return std::numeric_limits::min(); } - static result_type max() { return std::numeric_limits::max(); } + static constexpr result_type min() { return std::numeric_limits::min(); } + static constexpr result_type max() { return std::numeric_limits::max(); } }; } // namespace espcpputils