From 3b43449b791816108e08e138da7abfab365972d5 Mon Sep 17 00:00:00 2001 From: nthnn Date: Mon, 18 Mar 2024 21:04:29 +0800 Subject: [PATCH] Fixed bug on Random Number Generator Engine class. --- src/tomo_rng_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tomo_rng_engine.cpp b/src/tomo_rng_engine.cpp index 88c0d82..4c90d6e 100644 --- a/src/tomo_rng_engine.cpp +++ b/src/tomo_rng_engine.cpp @@ -9,5 +9,5 @@ void TomoRNGEngine::initializeEngine() { } uint8_t TomoRNGEngine::get(uint8_t min, uint8_t max) { - return (uint8_t) random(min, max); + return (uint8_t) random(min, max + 1); } \ No newline at end of file