From 27202b2faba4d022c3b1743ca50108cc0cffb515 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 9 Dec 2019 23:53:09 -0800 Subject: [PATCH] tinymt: correct init iter count --- libraries/libstratosphere/source/util/util_tinymt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/util/util_tinymt.cpp b/libraries/libstratosphere/source/util/util_tinymt.cpp index dbdb34be9..3d2c7f993 100644 --- a/libraries/libstratosphere/source/util/util_tinymt.cpp +++ b/libraries/libstratosphere/source/util/util_tinymt.cpp @@ -79,7 +79,7 @@ namespace ams::util { this->state.data[3] = ParamTmat; { - const int num_init_iterations = std::max(seed_count, MinimumInitIterations); + const int num_init_iterations = std::max(seed_count, MinimumInitIterations) - 1; GenerateInitialValuePlus(&this->state, 0, seed_count);