Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KsirK
Commits
d64e904a
Commit
d64e904a
authored
Sep 08, 2020
by
Albert Astals Cid
Browse files
Port away from KRandom
parent
7c70ab89
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d64e904a
...
...
@@ -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
)
...
...
ksirk/GameLogic/dice.cpp
View file @
d64e904a
...
...
@@ -21,7 +21,7 @@
#include "dice.h"
#include <
K
Random>
#include <
Q
Random
Generator
>
namespace
Ksirk
{
...
...
@@ -36,7 +36,7 @@ Dice::~Dice(){
unsigned
int
Dice
::
roll
(
unsigned
int
max
)
{
return
(
(
K
Random
::
random
()
%
max
)
+
1
)
;
return
1
+
Q
Random
Generator
::
global
()
->
bounded
(
max
);
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment