From 74b64a27f8e07b1b0b47b809b1a060518fa11a97 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Fri, 3 May 2019 00:25:46 -0700 Subject: Blast SDK 1.1.5 prerelease #1 --- test/src/unit/ActorTests.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/src/unit/ActorTests.cpp') diff --git a/test/src/unit/ActorTests.cpp b/test/src/unit/ActorTests.cpp index f25f6e4..7756e76 100755 --- a/test/src/unit/ActorTests.cpp +++ b/test/src/unit/ActorTests.cpp @@ -30,6 +30,7 @@ #include "AssetGenerator.h" #include +#include #include #include "NvBlastActor.h" @@ -650,7 +651,10 @@ public: { order[i] = i; } - std::random_shuffle(order.begin(), order.end()); + + std::random_device rd; + std::mt19937 g(rd()); + std::shuffle(order.begin(), order.end(), g); for (size_t i = 0; i < actors.size(); ++i) { -- cgit v1.2.3