Skip to content

Commit

Permalink
rand() -> qrand()
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Schwarzer committed Mar 10, 2016
1 parent fa5158d commit ad869c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aicontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ QList<int> aiController::autoFill(int safeMovesLeft)
if (fillLines.isEmpty()) {
break;
}
int index = rand() % fillLines.size();
int index = qrand() % fillLines.size();
fillLines.removeAt(index);
}

Expand Down

0 comments on commit ad869c6

Please sign in to comment.