aboutsummaryrefslogtreecommitdiff
path: root/test/src/unit/ActorTests.cpp
diff options
context:
space:
mode:
authorBryan Galdrikian <[email protected]>2019-05-03 00:25:46 -0700
committerBryan Galdrikian <[email protected]>2019-05-03 00:25:46 -0700
commit74b64a27f8e07b1b0b47b809b1a060518fa11a97 (patch)
tree34cca01711be56892c149706f02ba7358d87ec54 /test/src/unit/ActorTests.cpp
parentFixing chunk reorder bug in BlastTool, when importing a prefractured mesh (diff)
downloadblast-1.1.5_pre1.tar.xz
blast-1.1.5_pre1.zip
Blast SDK 1.1.5 prerelease #1v1.1.5_pre1
Diffstat (limited to 'test/src/unit/ActorTests.cpp')
-rwxr-xr-xtest/src/unit/ActorTests.cpp6
1 files changed, 5 insertions, 1 deletions
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 <map>
+#include <random>
#include <algorithm>
#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)
{