summaryrefslogtreecommitdiffstats
path: root/examples/embedded/flickable/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/embedded/flickable/main.cpp')
-rw-r--r--examples/embedded/flickable/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/embedded/flickable/main.cpp b/examples/embedded/flickable/main.cpp
index 9772ba4f55..9367c8b4fe 100644
--- a/examples/embedded/flickable/main.cpp
+++ b/examples/embedded/flickable/main.cpp
@@ -72,7 +72,7 @@ static QStringList colorPairs(int max)
// randomize it
colors.clear();
while (combinedColors.count()) {
- int i = qrand() % combinedColors.count();
+ int i = QRandomGenerator::global()->bounded(combinedColors.count());
colors << combinedColors[i];
combinedColors.removeAt(i);
if (colors.count() == max)