summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/replaceoperation/tst_replaceoperation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/installer/replaceoperation/tst_replaceoperation.cpp')
-rw-r--r--tests/auto/installer/replaceoperation/tst_replaceoperation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/installer/replaceoperation/tst_replaceoperation.cpp b/tests/auto/installer/replaceoperation/tst_replaceoperation.cpp
index 88dc2011b..33bd2b6c1 100644
--- a/tests/auto/installer/replaceoperation/tst_replaceoperation.cpp
+++ b/tests/auto/installer/replaceoperation/tst_replaceoperation.cpp
@@ -34,6 +34,7 @@
#include <QDir>
#include <QFile>
#include <QTest>
+#include <QRandomGenerator>
using namespace KDUpdater;
using namespace QInstaller;
@@ -46,7 +47,7 @@ private slots:
void initTestCase()
{
m_testDirectory = QInstaller::generateTemporaryFileName();
- m_testFilePath = m_testDirectory + "/test." + QString::number(qrand() % 1000);
+ m_testFilePath = m_testDirectory + "/test." + QString::number(QRandomGenerator::global()->generate() % 1000);
}
void testWrongArguments()