From 36d6566ce7a97556f30628c378037d4162fee8f7 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Tue, 19 Nov 2019 23:38:40 +0900 Subject: Fix compiler warnings on macOS Change-Id: I865357bf74bdaf88eabae5681c70a6e5032e274d Reviewed-by: Denis Shienkov Reviewed-by: Christian Kandeler --- tests/fuzzy-test/fuzzytester.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/fuzzy-test') diff --git a/tests/fuzzy-test/fuzzytester.cpp b/tests/fuzzy-test/fuzzytester.cpp index b836ee623..045e46718 100644 --- a/tests/fuzzy-test/fuzzytester.cpp +++ b/tests/fuzzy-test/fuzzytester.cpp @@ -36,6 +36,7 @@ #include #include #include +#include static QString resolveIncrementalActivity() { return "resolve-incremental"; } static QString buildIncrementalActivity() { return "build-incremental"; } @@ -71,7 +72,7 @@ void FuzzyTester::runTest(const QString &profile, const QString &startCommit, // Shuffle the initial sequence. Otherwise all invocations of the tool with the same start // commit would try the same sequence of commits. std::srand(std::time(nullptr)); - std::random_shuffle(allCommits.begin(), allCommits.end()); + std::shuffle(allCommits.begin(), allCommits.end(), std::mt19937(std::random_device()())); quint64 run = 0; QStringList buildSequence(workingStartCommit); -- cgit v1.2.3