diff options
Diffstat (limited to 'tests/auto/installer/registerfiletypeoperation/tst_registerfiletypeoperation.cpp')
-rw-r--r-- | tests/auto/installer/registerfiletypeoperation/tst_registerfiletypeoperation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/installer/registerfiletypeoperation/tst_registerfiletypeoperation.cpp b/tests/auto/installer/registerfiletypeoperation/tst_registerfiletypeoperation.cpp index bbe391a0a..4d14a2753 100644 --- a/tests/auto/installer/registerfiletypeoperation/tst_registerfiletypeoperation.cpp +++ b/tests/auto/installer/registerfiletypeoperation/tst_registerfiletypeoperation.cpp @@ -37,6 +37,7 @@ #include <QTextStream> #include <QSettings> #include <QtGlobal> +#include <QRandomGenerator> #include "qsettingswrapper.h" @@ -73,7 +74,7 @@ private slots: const QString possible = "abcdefghijklmnopqrstuvwxyz0123456789"; qsrand(QTime::currentTime().msec()); for (int i = 0; i < 5; i++) { - int index = qrand() % possible.length(); + int index = QRandomGenerator::global()->generate() % possible.length(); QChar nextChar = possible.at(index); randomString.append(nextChar); |