From a8f295f53a3efdc00470fbdc9fee8f7b92a286e6 Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Sun, 29 Nov 2026 10:15:39 +0100 Subject: [PATCH] test: NOSONAR on the copy of the simulation's random engine (S2245) --- tests/unit/test_utilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_utilities.cpp b/tests/unit/test_utilities.cpp index c799fd84d..d9309fa46 100644 --- a/tests/unit/test_utilities.cpp +++ b/tests/unit/test_utilities.cpp @@ -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);