summaryrefslogtreecommitdiffstats
path: root/examples/purchasing/qthangman/hangmangame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/purchasing/qthangman/hangmangame.cpp')
-rw-r--r--examples/purchasing/qthangman/hangmangame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/purchasing/qthangman/hangmangame.cpp b/examples/purchasing/qthangman/hangmangame.cpp
index 7358bd1..6852d77 100644
--- a/examples/purchasing/qthangman/hangmangame.cpp
+++ b/examples/purchasing/qthangman/hangmangame.cpp
@@ -232,7 +232,7 @@ void HangmanGame::chooseRandomWord()
if (m_wordList.isEmpty())
return;
- m_word = m_wordList.at(QRandomGenerator::bounded(m_wordList.size()));
+ m_word = m_wordList.at(QRandomGenerator::global()->bounded(m_wordList.size()));
emit wordChanged();
}