Commit 3cc2af7e authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

KRandom -> QRandomGenerator

KRandom is now deprecated
parent 49add727
......@@ -8,7 +8,7 @@ set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE
project(krfb VERSION ${RELEASE_SERVICE_VERSION})
set(QT_MIN_VERSION 5.6.0)
set(QT_MIN_VERSION 5.10.0)
set(KF5_MIN_VERSION 5.31.0)
find_package(ECM ${KF5_MIN_VERSION} NO_MODULE REQUIRED)
......
......@@ -26,10 +26,10 @@
#include <QApplication>
#include <QHostInfo>
#include <QDebug>
#include <QRandomGenerator>
#include <KLocalizedString>
#include <KUser>
#include <KRandom>
#include <KStringHandler>
#include <KWallet/KWallet>
......@@ -213,7 +213,7 @@ QString InvitationsRfbServer::readableRandomString(int length)
{
QString str;
while (length) {
int r = KRandom::random() % 62;
int r = QRandomGenerator::global()->bounded(62);
r += 48;
if (r > 57) {
r += 7;
......
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