diff --git a/compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp b/compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp --- a/compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp +++ b/compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp @@ -14,6 +14,7 @@ #include #include +#include #include template static void testSecondaryBasic(void) { @@ -42,7 +43,7 @@ std::vector V; for (scudo::uptr I = 0; I < 32U; I++) V.push_back(L->allocate(Size)); - std::random_shuffle(V.begin(), V.end()); + std::shuffle(V.begin(), V.end(), std::mt19937(std::random_device()())); while (!V.empty()) { L->deallocate(V.back()); V.pop_back();