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/AssetTests.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/src/unit/AssetTests.cpp') diff --git a/test/src/unit/AssetTests.cpp b/test/src/unit/AssetTests.cpp index 6511f60..58ea7d1 100755 --- a/test/src/unit/AssetTests.cpp +++ b/test/src/unit/AssetTests.cpp @@ -33,6 +33,7 @@ #include "NvBlastTkFramework.h" +#include #include @@ -301,13 +302,16 @@ public: // An array into which to copy the reordered descs std::vector shuffledChunkDescs(chunkDescCount); + std::random_device rd; + std::mt19937 g(rd()); + std::vector scratch; const uint32_t trials = 30; uint32_t attempt = 0; while(1) { // Shuffle the reorder array - std::random_shuffle(shuffledOrder.begin(), shuffledOrder.end()); + std::shuffle(shuffledOrder.begin(), shuffledOrder.end(), g); // Save initial bonds std::vector savedBondDescs(bondDescs, bondDescs + bondDescCount); -- cgit v1.2.3