Unverified Commit d1252b1e authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Port to QRandomGenerator from KRandom::random

KRandom::random() has been deprecated and AFAICS, the PIM CMake settings
disable deprecated API. This causes build failures.
parent 0f983efd
Pipeline #25404 passed with stage
in 11 minutes and 18 seconds
......@@ -37,10 +37,10 @@ static const char configKeyDefaultIdentity[] = "Default Identity";
#include <QList>
#include <QHostInfo>
#include <QDBusConnection>
#include <QRandomGenerator>
#include <QRegularExpression>
#include <assert.h>
#include <KRandom>
#include "identitymanageradaptor.h"
......@@ -263,7 +263,7 @@ int IdentityManager::Private::newUoid()
// default identity
do {
uoid = KRandom::random();
uoid = QRandomGenerator::global()->generate();
} while (usedUOIDs.indexOf(uoid) != -1);
return uoid;
......
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