diff --git a/samples/blackmisc/samplesalgorithm.cpp b/samples/blackmisc/samplesalgorithm.cpp index e3a280f83..9ab3e9e84 100644 --- a/samples/blackmisc/samplesalgorithm.cpp +++ b/samples/blackmisc/samplesalgorithm.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include namespace BlackSample @@ -67,7 +68,7 @@ namespace BlackSample } QStringList src { "a1", "a2", "a3", "b1", "b2", "b3", "c1", "c2", "c3" }; - std::random_shuffle(src.begin(), src.end()); + std::shuffle(src.begin(), src.end(), std::mt19937(static_cast(std::time(nullptr)))); qDebug() << src; qDebug() << "topologicallySortedInsert"; QStringList dst;