qt6-bb10/tests/auto/network/socket
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
..
platformsocketengine QNativeSocketEngine: disable unused methods about OS socket buffer 2017-09-01 16:40:36 +00:00
qabstractsocket Updated license headers 2016-01-21 18:55:18 +00:00
qhttpsocketengine Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qlocalsocket Add QLocalServer::socketDescriptor 2017-06-06 17:46:50 +00:00
qsctpsocket Network: Use canonical license headers 2017-02-28 15:34:01 +00:00
qsocks5socketengine tst_QSocks5SocketEngine::downloadBigFile(): Output elapsed time 2017-06-28 17:54:07 +00:00
qtcpserver Convert features.socks5 to QT_[REQUIRE_]CONFIG 2017-09-06 06:50:54 +00:00
qtcpsocket Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qudpsocket Convert features.socks5 to QT_[REQUIRE_]CONFIG 2017-09-06 06:50:54 +00:00
socket.pro Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00