17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 18:07:29 +01:00

fix(sonar): addressing last reliability/security issues

This commit is contained in:
jerrrrycho
2026-10-06 14:21:55 +02:00
parent c6b76a0b72
commit e570874f63
5 changed files with 14 additions and 10 deletions

View File

@@ -622,7 +622,8 @@ std::string deserialize_random_set(cParser &Input, char const *Break)
}
if (false == tokens.empty())
{
std::shuffle(std::begin(tokens), std::end(tokens), Global.random_engine);
// scenery random set: must replay from the shared run seed, not a security concern
std::shuffle(std::begin(tokens), std::end(tokens), Global.random_engine); // NOSONAR
return tokens.front();
}
else