qt5base-lts/examples/widgets/animation/sub-attaq
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
..
pics Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
animationmanager.cpp Updated license headers 2016-01-21 18:55:32 +00:00
animationmanager.h Updated license headers 2016-01-21 18:55:32 +00:00
boat_p.h Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
boat.cpp Updated license headers 2016-01-21 18:55:32 +00:00
boat.h Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
bomb.cpp Updated license headers 2016-01-21 18:55:32 +00:00
bomb.h Updated license headers 2016-01-21 18:55:32 +00:00
data.xml Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
graphicsscene.cpp examples: remove some unneeded QStringRef::toString() calls 2017-04-07 14:35:04 +00:00
graphicsscene.h Updated license headers 2016-01-21 18:55:32 +00:00
main.cpp Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
mainwindow.cpp Updated license headers 2016-01-21 18:55:32 +00:00
mainwindow.h Updated license headers 2016-01-21 18:55:32 +00:00
pixmapitem.cpp Updated license headers 2016-01-21 18:55:32 +00:00
pixmapitem.h Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
progressitem.cpp Updated license headers 2016-01-21 18:55:32 +00:00
progressitem.h Updated license headers 2016-01-21 18:55:32 +00:00
qanimationstate.cpp Updated license headers 2016-01-21 18:55:32 +00:00
qanimationstate.h Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
states.cpp Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
states.h Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
sub-attaq.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
subattaq.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
submarine_p.h Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
submarine.cpp Updated license headers 2016-01-21 18:55:32 +00:00
submarine.h Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
textinformationitem.cpp Updated license headers 2016-01-21 18:55:32 +00:00
textinformationitem.h Updated license headers 2016-01-21 18:55:32 +00:00
torpedo.cpp Updated license headers 2016-01-21 18:55:32 +00:00
torpedo.h Updated license headers 2016-01-21 18:55:32 +00:00