mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-02 01:32:43 +01:00
test: NOSONAR on the copy of the simulation's random engine (S2245)
This commit is contained in:
@@ -302,7 +302,7 @@ TEST_CASE("utilities: the uuid of a scene node takes none of the random numbers
|
||||
// a node added to the scenery (or a memory cell the program makes before it) left the numbers drawn after it as
|
||||
// they were: the physics of a run of a seed doesn't depend on how many nodes the scenery has
|
||||
Global.random_engine.seed(11);
|
||||
auto const before{Global.random_engine};
|
||||
auto const before{Global.random_engine}; // NOSONAR: a copy of the simulation's engine to compare with; nothing secret is drawn
|
||||
auto const first{UID::random()};
|
||||
auto const second{UID::random()};
|
||||
CHECK(Global.random_engine == before);
|
||||
|
||||
Reference in New Issue
Block a user