diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-09-21 12:23:48 -0700 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-03 09:12:14 +0000 |
commit | ee00fa01dc41deaaedfa0d1d5cc6cd750bfe75f4 (patch) | |
tree | e764c6bab1bd0883fcbfe20c7703f997fb22d510 /tests/benchmarks/qml/painting/paintbenchmark.cpp | |
parent | 62e23e1ae6542b5ab837a2481d9257c81e484013 (diff) |
Update to new QRandomGenerator API
Change-Id: I69f37f9304f24709a823fffd14e676c097712329
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests/benchmarks/qml/painting/paintbenchmark.cpp')
-rw-r--r-- | tests/benchmarks/qml/painting/paintbenchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/qml/painting/paintbenchmark.cpp b/tests/benchmarks/qml/painting/paintbenchmark.cpp index 98d8d7c16a..d195675ab8 100644 --- a/tests/benchmarks/qml/painting/paintbenchmark.cpp +++ b/tests/benchmarks/qml/painting/paintbenchmark.cpp @@ -322,7 +322,7 @@ public: int len = strlen(chars); for (int i = 0; i < lines; ++i) { for (int j = 0; j < 60; j++) { - strings[i] += QChar(chars[QRandomGenerator::bounded(len)]); + strings[i] += QChar(chars[QRandomGenerator::global()->bounded(len)]); } } } |