qt6-bb10/src/opengl
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
..
doc Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
gl2paintengineex Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
opengl.pro Convert features.graphicseffect to QT_[REQUIRE_]CONFIG 2017-07-11 02:52:03 +00:00
qgl.cpp Use QT_CONFIG(library) instead of QT_NO_LIBRARY 2017-03-06 11:27:20 +00:00
qgl.h doc: Always declare GL types for clangqdoc 2016-12-03 19:17:53 +00:00
qgl_p.h Updated license headers 2016-01-15 12:25:24 +00:00
qglbuffer.cpp Fix crash when running tst_qlbuffers under Angle 2017-06-28 11:25:42 +00:00
qglbuffer.h Updated license headers 2016-01-15 12:25:24 +00:00
qglcolormap.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qglcolormap.h Updated license headers 2016-01-15 12:25:24 +00:00
qglframebufferobject.cpp Use QT_CONFIG(library) instead of QT_NO_LIBRARY 2017-03-06 11:27:20 +00:00
qglframebufferobject.h Updated license headers 2016-01-15 12:25:24 +00:00
qglframebufferobject_p.h Standardize some "We mean it" comments 2016-08-17 19:51:40 +00:00
qglfunctions.cpp Updated license headers 2016-01-15 12:25:24 +00:00
qglfunctions.h Updated license headers 2016-01-15 12:25:24 +00:00
qglpaintdevice.cpp Make high-dpi QGLWidget work cross platform 2017-08-02 21:58:21 +00:00
qglpaintdevice_p.h Updated license headers 2016-01-15 12:25:24 +00:00
qglpixelbuffer.cpp Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
qglpixelbuffer.h Updated license headers 2016-01-15 12:25:24 +00:00
qglpixelbuffer_p.h Add missing override into Qt modules 2016-12-01 12:07:13 +00:00
qglshaderprogram.cpp QtBase (remainder): use printf-style qWarning/qDebug where possible (I) 2016-03-12 17:29:36 +00:00
qglshaderprogram.h Updated license headers 2016-01-15 12:25:24 +00:00
qgraphicsshadereffect.cpp Convert features.graphicseffect to QT_[REQUIRE_]CONFIG 2017-07-11 02:52:03 +00:00
qgraphicsshadereffect_p.h Convert features.graphicseffect to QT_[REQUIRE_]CONFIG 2017-07-11 02:52:03 +00:00
qtopenglglobal.h Updated license headers 2016-01-21 18:55:18 +00:00