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
KSquares
Commits
ad869c67
Commit
ad869c67
authored
Mar 10, 2016
by
Frederik Schwarzer
Browse files
rand() -> qrand()
parent
fa5158d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aicontroller.cpp
View file @
ad869c67
...
...
@@ -51,7 +51,7 @@ QList<int> aiController::autoFill(int safeMovesLeft)
if
(
fillLines
.
isEmpty
())
{
break
;
}
int
index
=
rand
()
%
fillLines
.
size
();
int
index
=
q
rand
()
%
fillLines
.
size
();
fillLines
.
removeAt
(
index
);
}
...
...
Write
Preview
Supports
Markdown
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