Skip to content

Commit

Permalink
RNG inclusivity/exclusivity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanHockey5 committed Oct 8, 2021
1 parent fc6e2b5 commit 17df61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void findTracksOnRoot()

int RNG(int lower, int upper)
{
return (trngGetRandomNumber() % (upper - lower + 1)) + lower;
return (trngGetRandomNumber() % (upper - lower)) + lower;
}

File getFileFromVwdIndex(uint32_t index)
Expand Down

0 comments on commit 17df61c

Please sign in to comment.