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

Port away from KRandom

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