qt5base-lts/tests/benchmarks/corelib/tools
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
..
containers-associative Updated license headers 2016-01-21 18:55:18 +00:00
containers-sequential Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qalgorithms Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qbytearray Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qchar Updated license headers 2016-01-21 18:55:18 +00:00
qcontiguouscache Updated license headers 2016-01-21 18:55:18 +00:00
qcryptographichash Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qdatetime QDateTime::fromString(): improve performance by 33% 2017-01-03 13:37:49 +00:00
qhash Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qlist Updated license headers 2016-01-21 18:55:18 +00:00
qlocale Updated license headers 2016-01-21 18:55:18 +00:00
qmap Updated license headers 2016-01-21 18:55:18 +00:00
qrect Updated license headers 2016-01-21 18:55:18 +00:00
qregexp Updated license headers 2016-01-21 18:55:18 +00:00
qringbuffer Updated license headers 2016-01-21 18:55:18 +00:00
qset Updated license headers 2016-01-21 18:55:18 +00:00
qstack Updated license headers 2016-01-21 18:55:18 +00:00
qstring Updated license headers 2016-01-21 18:55:18 +00:00
qstringbuilder Updated license headers 2016-01-21 18:55:18 +00:00
qstringlist Updated license headers 2016-01-21 18:55:18 +00:00
qvector Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
tools.pro Skip old benchmark that doesn't build automatically 2016-04-13 12:23:06 +00:00