summaryrefslogtreecommitdiffstats
path: root/tests/manual/openglseriestest/datasource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/openglseriestest/datasource.cpp')
-rw-r--r--tests/manual/openglseriestest/datasource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/openglseriestest/datasource.cpp b/tests/manual/openglseriestest/datasource.cpp
index 29d7e2ba..dbf6874c 100644
--- a/tests/manual/openglseriestest/datasource.cpp
+++ b/tests/manual/openglseriestest/datasource.cpp
@@ -119,7 +119,7 @@ void DataSource::generateData(int seriesIndex, int rowCount, int colCount)
qreal y(0);
// data with sin + random component
y = height + (yMultiplier * qSin(M_PI / 50 * j)
- + (yMultiplier * QRandomGenerator::getReal()));
+ + (yMultiplier * QRandomGenerator::global()->generateDouble()));
// 0.000001 added to make values logaxis compatible
x = 0.000001 + 20.0 * (qreal(j) / qreal(colCount)) + (xAdjustment * qreal(i));
points.append(QPointF(x, y));