Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cpps): Out-of-range access to vector
std::uniform_int_distribution returns a number from the closed interval of the lower and upper bound. This sometimes lead to out-of-range access to the possible_candidates vector. Further, the code was simplified by always using the std::uniform_int_distribution, even with only a single element.
- Loading branch information