mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-01 23:17:56 +01:00
test: the copy of the thread's engine marked as the simulation's randomness for Sonar (S2245)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user