qt5base-lts/examples/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
..
bearermonitor Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
blockingfortuneclient Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
broadcastreceiver QtNetwork (examples) - update broadcastreceiver too 2017-09-27 16:35:11 +00:00
broadcastsender QtNetwork (examples) - update broadcastsender 2017-09-22 04:29:17 +00:00
dnslookup Unify license header usage. 2016-03-29 10:20:03 +00:00
doc Slightly revamp the http example 2017-09-22 14:29:12 +00:00
download QtNetwork (examples) - update network download manager 2017-10-02 17:10:38 +00:00
downloadmanager QtNetwork (examples) - update the second download manager example 2017-10-02 17:16:21 +00:00
fortuneclient QtNetwork (examples) - update the fortune client example 2017-09-28 09:29:41 +00:00
fortuneserver Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
googlesuggest QtNetwork (examples) - update googlesuggest example 2017-10-05 03:45:26 +00:00
http Slightly revamp the http example 2017-09-22 14:29:12 +00:00
loopback Unify license header usage. 2016-03-29 10:20:03 +00:00
multicastreceiver QtNetwork (examples) - update multicastreceiver example 2017-09-28 09:28:18 +00:00
multicastsender QtNetwork (examples) - update multicastsender 2017-09-25 18:43:35 +00:00
multistreamclient Polish SCTP examples 2016-08-03 11:46:21 +00:00
multistreamserver Examples: Remove remains of wince 2017-07-14 17:30:51 +00:00
network-chat Example: migrate network-chat to use QRegularExpression 2017-01-23 22:53:03 +00:00
securesocketclient QtNetwork (examples) - update secure socket client example 2017-09-25 13:59:50 +00:00
shared Polish SCTP examples 2016-08-03 11:46:21 +00:00
threadedfortuneserver Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
torrent Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
network.pro Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-24 20:01:42 +01:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00

Qt is provided with an extensive set of network classes to support both
client-based and server side network programming.

These examples demonstrate the fundamental aspects of network programming
with Qt.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.