mirror of
https://github.com/catchorg/Catch2.git
synced 2025-10-11 22:35:30 +02:00
reseeds rng before each test case and provides access to seed through Catch::rngSeed() function
This commit is contained in:
@@ -90,6 +90,8 @@ namespace Catch {
|
||||
break;
|
||||
case RunTests::InRandomOrder:
|
||||
{
|
||||
seedRng( config );
|
||||
|
||||
RandomNumberGenerator rng;
|
||||
std::random_shuffle( matchingTestCases.begin(), matchingTestCases.end(), rng );
|
||||
}
|
||||
|
Reference in New Issue
Block a user