diff --git a/esprandom.h b/esprandom.h index c5830be..ff6d3f1 100644 --- a/esprandom.h +++ b/esprandom.h @@ -18,8 +18,8 @@ public: result_type operator()() const { return esp_random(); } double entropy() const { return 1.; } - result_type min() const { return std::numeric_limits::min(); } - result_type max() const { return std::numeric_limits::max(); } + static result_type min() { return std::numeric_limits::min(); } + static result_type max() { return std::numeric_limits::max(); } }; std::string randomString(std::size_t length)