aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles/qquickellipseextruder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particles/qquickellipseextruder.cpp')
-rw-r--r--src/particles/qquickellipseextruder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particles/qquickellipseextruder.cpp b/src/particles/qquickellipseextruder.cpp
index fbb11b34cc..52fccd6da9 100644
--- a/src/particles/qquickellipseextruder.cpp
+++ b/src/particles/qquickellipseextruder.cpp
@@ -68,8 +68,8 @@ QQuickEllipseExtruder::QQuickEllipseExtruder(QObject *parent) :
QPointF QQuickEllipseExtruder::extrude(const QRectF & r)
{
- qreal theta = QRandomGenerator::bounded(2 * M_PI);
- qreal mag = m_fill ? QRandomGenerator::getReal() : 1;
+ qreal theta = QRandomGenerator::global()->bounded(2 * M_PI);
+ qreal mag = m_fill ? QRandomGenerator::global()->generateDouble() : 1;
return QPointF(r.x() + r.width()/2 + mag * (r.width()/2) * qCos(theta),
r.y() + r.height()/2 + mag * (r.height()/2) * qSin(theta));
}