reseeds rng before each test case and provides access to seed through Catch::rngSeed() function
This commit is contained in:
parent
b971fe785b
commit
d87e551efa
5 changed files with 18 additions and 1 deletions
|
@ -90,6 +90,8 @@ namespace Catch {
|
|||
break;
|
||||
case RunTests::InRandomOrder:
|
||||
{
|
||||
seedRng( config );
|
||||
|
||||
RandomNumberGenerator rng;
|
||||
std::random_shuffle( matchingTestCases.begin(), matchingTestCases.end(), rng );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue