Commit 81a9878c authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Port away from KRandom

parent b2d3f710
......@@ -16,7 +16,7 @@
#include <QMouseEvent>
#include <QStyleOptionViewItem>
#include <KRandom>
#include <QRandomGenerator>
#include <QStandardPaths>
......@@ -216,7 +216,7 @@ bool dicesWidget::generateDices()
{
if (m_rollDice[i])
{
m_dice[i] = 1 + (int)(6.0 * KRandom::random() / (RAND_MAX + 1.0));
m_dice[i] = 1 + QRandomGenerator::global()->bounded(6);
m_rollDice[i] = false;
any = true;
}
......
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