qt5base-lts/tests/auto/widgets/itemviews
Thiago Macieira 19b0ce5daa Change almost all other uses of qrand() to QRandomGenerator
The vast majority is actually switched to QRandomGenerator::bounded(),
which gives a mostly uniform distribution over the [0, bound)
range. There are very few floating point cases left, as many of those
that did use floating point did not need to, after all. (I did leave
some that were too ugly for me to understand)

This commit also found a couple of calls to rand() instead of qrand().

This commit does not include changes to SSL code that continues to use
qrand() (job for someone else):
  src/network/ssl/qsslkey_qt.cpp
  src/network/ssl/qsslsocket_mac.cpp
  tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp

Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-11-08 09:14:03 +00:00
..
qabstractitemview Ensure result of all QTest::qWaitFor are verified 2017-10-05 15:15:36 +00:00
qcolumnview tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdatawidgetmapper tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qdirmodel Remove remains of wince in .pro files 2017-07-03 05:32:51 +00:00
qfileiconprovider Updated license headers 2016-01-21 18:55:18 +00:00
qheaderview QHeaderView: fix visual/logical index corruption when restoring state 2017-05-26 12:43:31 +00:00
qitemdelegate Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
qitemeditorfactory Updated license headers 2016-01-21 18:55:18 +00:00
qitemview Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qlistview Ensure result of all QTest::qWaitFor are verified 2017-10-05 15:15:36 +00:00
qlistwidget Fix tst_QListWidget::QTBUG50891_ensureSelectionModelSignalConnectionsAreSet 2017-07-21 22:10:28 +00:00
qtableview Use QSharedPointer::create() more 2017-07-19 13:40:42 +00:00
qtablewidget tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
qtreeview tests: Make braces consistent 2017-11-03 15:55:53 +00:00
qtreewidget tst_QTreeWidget: Fix GCC 7 warnings about using uninitialized variables 2017-06-25 22:04:04 +00:00
qtreewidgetitemiterator tests/auto/widgets: use QCOMPARE(., nullptr) 2016-11-30 07:24:47 +00:00
itemviews.pro Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00