qt5base-lts/tests/auto/corelib/thread
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
..
qatomicint Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qatomicinteger Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-24 20:37:33 +01:00
qatomicpointer Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qfuture Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qfuturesynchronizer Drop unnecessary dependencies from some tests 2017-01-10 16:34:52 +00:00
qfuturewatcher Updated license headers 2016-01-21 18:55:18 +00:00
qmutex tst_QMutex: produce less noise with MSVC 2017-09-01 16:36:17 +00:00
qmutexlocker Updated license headers 2016-01-21 18:55:18 +00:00
qreadlocker Updated license headers 2016-01-21 18:55:18 +00:00
qreadwritelock Updated license headers 2016-01-21 18:55:18 +00:00
qresultstore Fix UB in QFutureInterface: invalid casts from ResultStoreBase to ResultStore<> 2017-03-06 18:32:28 +00:00
qsemaphore Merge remote-tracking branch 'origin/5.9' into dev 2017-06-07 14:02:43 +02:00
qthread Move detection of <future> to a configure test 2017-10-06 05:51:54 +00:00
qthreadonce QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
qthreadpool Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-16 22:21:52 +03:00
qthreadstorage Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qwaitcondition Blacklist tst_QWaitCondition::wakeOne() on Windows 2017-02-14 06:51:52 +00:00
qwritelocker Updated license headers 2016-01-21 18:55:18 +00:00
thread.pro Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00