Commit fbf7be12 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Port away from KRandom

parent 3ebd3463
...@@ -22,12 +22,11 @@ ...@@ -22,12 +22,11 @@
#include "k3bcore.h" #include "k3bcore.h"
#include "k3b_i18n.h" #include "k3b_i18n.h"
#include <KRandom>
#include <QDebug> #include <QDebug>
#include <QThread> #include <QThread>
#include <QMutex> #include <QMutex>
#include <QEvent> #include <QEvent>
#include <QRandomGenerator>
#include <KCddb/Client> #include <KCddb/Client>
...@@ -188,7 +187,7 @@ int K3b::MediaCache::blockDevice( K3b::Device::Device* dev ) ...@@ -188,7 +187,7 @@ int K3b::MediaCache::blockDevice( K3b::Device::Device* dev )
e->readMutex.lock(); e->readMutex.lock();
// create (hopefully) unique id // create (hopefully) unique id
e->blockedId = KRandom::random(); e->blockedId = QRandomGenerator::global()->bounded(RAND_MAX);
// let the info go // let the info go
e->readMutex.unlock(); e->readMutex.unlock();
......
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