Commit 21f71613 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Don't generate random game numbers bigger than INT_MAX

Since we don't allow users to enter a numbered number bigger than it

BUGS: 444188
parent dad86d71
......@@ -212,7 +212,7 @@ void GameView::createNewGame(long gameNumber)
// Create a random game number, if no one was given.
if (gameNumber == -1) {
m_gameNumber = QRandomGenerator::global()->generate();
m_gameNumber = QRandomGenerator::global()->generate() % INT_MAX;
} else {
m_gameNumber = gameNumber;
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