Skip to content

Commit

Permalink
Fixed bug on Random Number Generator Engine class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Mar 18, 2024
1 parent 5fcc5f3 commit 3b43449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tomo_rng_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 3b43449

Please sign in to comment.