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
26701de9
Commit
26701de9
authored
Mar 08, 2016
by
Frederik Schwarzer
Browse files
rand() -> qrand()
parent
e150d9dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aicontroller.cpp
View file @
26701de9
...
...
@@ -23,7 +23,7 @@ aiController::aiController(int newPlayerId, const QList<bool> &newLines, const Q
for
(
int
i
=
0
;
i
<
linesSize
;
++
i
)
{
lines
[
i
]
=
newLines
[
i
];
}
srand
((
unsigned
)
time
(
NULL
));
q
srand
((
unsigned
)
time
(
NULL
));
//qDebug() << "AI: Starting AI level" << Settings::difficulty();
}
...
...
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