From 47e386197d18743f7367ece8c542fd4b5ca5af5e Mon Sep 17 00:00:00 2001 From: A Green Spoon <121978037+A-Green-Spoon@users.noreply.github.com> Date: Mon, 8 Jun 2026 21:59:02 -0400 Subject: [PATCH] Fix random seed string gen (#6697) --- soh/soh/Enhancements/randomizer/3drando/menu.cpp | 4 ++-- soh/soh/Enhancements/randomizer/3drando/playthrough.cpp | 4 ++-- soh/soh/SohGui/SohMenuRandomizer.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/menu.cpp b/soh/soh/Enhancements/randomizer/3drando/menu.cpp index 820c5066d0..a0886da62f 100644 --- a/soh/soh/Enhancements/randomizer/3drando/menu.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/menu.cpp @@ -20,11 +20,11 @@ bool GenerateRandomizer(std::set excludedLocations, std::set 18) { int count; diff --git a/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp b/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp index 4ee635323c..6b58bc8019 100644 --- a/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/playthrough.cpp @@ -94,11 +94,11 @@ int Playthrough_Repeat(std::set excludedLocations, std::setSetSeedString(std::string(seedString)); repeatedSeed = SohUtils::Hash(ctx->GetSeedString()); ctx->SetSeed(repeatedSeed); diff --git a/soh/soh/SohGui/SohMenuRandomizer.cpp b/soh/soh/SohGui/SohMenuRandomizer.cpp index 24274a4d3d..d6b7a99d44 100644 --- a/soh/soh/SohGui/SohMenuRandomizer.cpp +++ b/soh/soh/SohGui/SohMenuRandomizer.cpp @@ -563,7 +563,7 @@ void SohMenu::AddMenuRandomizer() { for (size_t i = 0; i < 10; i++) { seedString[i] = '0' + ShipUtils::Random(0, 10); } - seedString[11] = '\0'; + seedString[10] = '\0'; } ImGui::SameLine(); if (UIWidgets::Button(ICON_FA_ERASER, UIWidgets::ButtonOptions()