Commit 9c43e1e6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QRandomGenerator

parent 3db6c818
......@@ -34,6 +34,7 @@
#include <QRegularExpression>
#include <QRegularExpressionMatch>
#include <QString>
#include <QRandomGenerator>
#include <KSharedConfig>
#include <KIO/ListJob>
......@@ -269,7 +270,7 @@ QString ExportManager::autoIncrementFilename(const QString &baseName, const QStr
// unlikely this will ever happen, but just in case we've run
// out of numbers
result = fileNameFmt.arg(QLatin1String("OVERFLOW-") + QString::number(qrand() % 10000));
result = fileNameFmt.arg(QLatin1String("OVERFLOW-") + QString::number(QRandomGenerator::global()->bounded(10000)));
return truncatedFilename(result) + extension;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment