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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user