From 1c7e556e7e6f92e63113261bd0c3b9bea9f6bbaa Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 2 Feb 2021 23:16:31 +0100 Subject: [PATCH] random source now correct interface (static) --- esprandom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)