diff --git a/autotests/HelperTest.cpp b/autotests/HelperTest.cpp --- a/autotests/HelperTest.cpp +++ b/autotests/HelperTest.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -211,8 +212,9 @@ QVariantMap args; // Fill with random data (and test heavy structures while we're at it) + auto *generator = QRandomGenerator::global(); for (int i = 0; i < 150; ++i) { - args.insert(QUuid::createUuid().toString(), qrand()); + args.insert(QUuid::createUuid().toString(), generator->generate()); } action.setArguments(args);