diff options
Diffstat (limited to 'test/src/unit/ActorTests.cpp')
| -rwxr-xr-x | test/src/unit/ActorTests.cpp | 6 |
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)
{
|