Commit d64e904a authored by Albert Astals Cid's avatar Albert Astals Cid

Port away from KRandom

parent 7c70ab89
......@@ -8,7 +8,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(ksirk VERSION ${RELEASE_SERVICE_VERSION})
set (QT_MIN_VERSION "5.8.0")
set (QT_MIN_VERSION "5.10.0")
set (KF5_MIN_VERSION "5.57.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
......
......@@ -21,7 +21,7 @@
#include "dice.h"
#include <KRandom>
#include <QRandomGenerator>
namespace Ksirk
{
......@@ -36,7 +36,7 @@ Dice::~Dice(){
unsigned int Dice::roll(unsigned int max)
{
return ( (KRandom::random() % max) + 1 ) ;
return 1 + QRandomGenerator::global()->bounded(max);;
}
}
......
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