Skip to content

Commit

Permalink
Fixed a small off-by-one error in the initialization of the FastRando…
Browse files Browse the repository at this point in the history
…mIntGenerator. (#423)
  • Loading branch information
joka921 committed Jul 16, 2021
1 parent 4308ec2 commit 6f880d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FastRandomIntGenerator {
FastRandomIntGenerator() {
// Randomly initialize the shuffleTable
std::random_device seeder{};
for (size_t i = 0; i <= _shuffleTable.size(); ++i) {
for (size_t i = 0; i < _shuffleTable.size(); ++i) {
_shuffleTable[i] = seeder();
}
}
Expand Down

0 comments on commit 6f880d7

Please sign in to comment.