Replaced use of std::rand with std::mt19937

This uses a global instance of the RNG
This commit is contained in:
Phil Nash
2018-06-15 14:35:47 +01:00
parent 1dce91d78e
commit 35a57b070f
3 changed files with 14 additions and 31 deletions

View File

@@ -28,7 +28,7 @@ namespace Catch {
break;
case RunTests::InRandomOrder:
seedRng( config );
RandomNumberGenerator::shuffle( sorted );
std::shuffle( sorted.begin(), sorted.end(), rng() );
break;
case RunTests::InDeclarationOrder:
// already in declaration order