1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 20:06:40 +00:00

Fix another off-by-one in TinyMT init calcs

This commit is contained in:
Michael Scire 2019-12-10 01:14:36 -08:00
parent 27202b2fab
commit 7cead4b620

View file

@ -79,7 +79,7 @@ namespace ams::util {
this->state.data[3] = ParamTmat;
{
const int num_init_iterations = std::max(seed_count, MinimumInitIterations) - 1;
const int num_init_iterations = std::max(seed_count + 1, MinimumInitIterations) - 1;
GenerateInitialValuePlus(&this->state, 0, seed_count);