Commit e479b717 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

make pos a quint32 which is what QRandomGenerator::bounded returns

parent b820a2df
......@@ -900,7 +900,7 @@ bool GameData::findMove(POSITION & posA, POSITION & posB)
if (posCount >= 2) {
random.seed(QRandomGenerator::global()->generate()); // WABA: Why is the seed reset?
short pos = random.bounded(posCount) & -2; // Even value
const quint32 pos = random.bounded(posCount) & -2; // Even value
posA = m_posTable[pos];
posB = m_posTable[pos + 1];
......
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