From 4a7eab6e136d60e33dcf083dab41e701512d5f65 Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Tue, 1 Dec 2026 16:57:52 +0100 Subject: [PATCH] test: the copy of the thread's engine marked as the simulation's randomness for Sonar (S2245) --- tests/unit/test_random_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_random_engine.cpp b/tests/unit/test_random_engine.cpp index da673ef4d..b36005d08 100644 --- a/tests/unit/test_random_engine.cpp +++ b/tests/unit/test_random_engine.cpp @@ -47,7 +47,7 @@ TEST_CASE("random engine: the lazily seeded engine draws as one seeded up front TEST_CASE("random engine: the lazy engine is seeded at the first draw only, and stands ahead of the thread's engine") { std::mt19937 threadengine{1u}; // NOSONAR: randomness of the simulation, not of anything security-relevant - auto const untouched{threadengine}; + auto const untouched{threadengine}; // NOSONAR: randomness of the simulation, not of anything security-relevant set_thread_random_engine(&threadengine); lazy_random_engine lazy;