qt5base-lts/tests/auto/corelib/kernel
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
..
qcoreapplication qmake: Allow non-bundle apps and libs to have an Info.plist 2017-09-29 10:08:08 +00:00
qdeadlinetimer Increase the resolution for QDeadlineTimer unit test 2016-10-26 03:16:26 +00:00
qelapsedtimer Extend blacklisting of tst_QElapsedTimer::elapsed to cover macOS 10.12 2017-06-18 12:58:58 +00:00
qeventdispatcher Extend blacklisting of qeventdispatcher to cover macOS 2017-05-23 14:52:09 +00:00
qeventloop Remove timer checks from testQuitLock 2017-08-22 05:10:48 +00:00
qmath Be (somewhat more) consistent about the value of pi 2017-06-20 09:53:46 +00:00
qmetaenum Updated license headers 2016-01-21 18:55:18 +00:00
qmetamethod macOS: Don't build auto-tests as application bundles unless explicitly requested 2016-10-23 10:39:56 +00:00
qmetaobject moc: Allow NOTIFY signals defined in parent classes 2017-05-23 11:11:52 +00:00
qmetaobjectbuilder Add support for scoped enums to QMetaObjectBuilder 2017-04-24 19:19:44 +00:00
qmetaproperty Updated license headers 2016-01-21 18:55:18 +00:00
qmetatype Merge remote-tracking branch 'origin/5.9' into dev 2017-05-29 10:54:41 +02:00
qmimedata Updated license headers 2016-01-21 18:55:18 +00:00
qobject Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qpointer Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
qsharedmemory tst_QSharedMemory::readOnly: Skip on macOS 2017-06-07 16:21:49 +00:00
qsignalblocker Updated license headers 2016-01-21 18:55:18 +00:00
qsignalmapper Updated license headers 2016-01-21 18:55:18 +00:00
qsocketnotifier winrt: Fix tst_QSocketNotifier::asyncMultipleDatagram 2017-05-11 06:37:36 +00:00
qsystemsemaphore Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
qtimer Clean up OS version checks for Apple platforms 2017-09-29 03:30:13 +00:00
qtranslator Make calling QCoreApplication::translate() thread-safe 2017-07-06 18:26:41 +00:00
qvariant Implement conversion from nullptr QVariant to QString and QByteArray 2017-08-04 11:19:44 +00:00
qwineventnotifier Fix QWinEventNotifier for auto-reset events 2017-10-15 16:14:04 +00:00
kernel.pro Exclude QSystemSemaphore test with -no-feature-systemsemaphore 2017-09-18 08:56:53 +00:00