qt5base-lts/tests/auto/network
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
..
access Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
bearer Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
kernel Remove failing QVERIFY on bearer management 2017-10-28 06:08:46 +00:00
socket Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
ssl Merge remote-tracking branch 'origin/5.9' into 5.10 2017-10-04 13:41:04 +02:00
network.pro Re-enable network tests on Mac OS. 2012-04-24 16:06:28 +02:00