From a155041878e2c78dfa94fa774f15611248bd9349 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Mon, 13 Jun 2022 20:35:35 +0200 Subject: [PATCH] Updated to newest IDF with new GCC --- src/esprandom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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