summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-07-12 12:18:29 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-07-13 08:28:36 (GMT)
commita0fffeed6fceb8244328b649a3f6feb520493bc2 (patch)
treee6f70e8852c0687cc2a58ba65b9d67a08e011d43 /src/opengl
parent4ba6646150300feb79af9510c7c5d238d653a98e (diff)
downloadQt-a0fffeed6fceb8244328b649a3f6feb520493bc2.zip
Qt-a0fffeed6fceb8244328b649a3f6feb520493bc2.tar.gz
Qt-a0fffeed6fceb8244328b649a3f6feb520493bc2.tar.bz2
Fix regression in tst_qrand::testqrand()
qrand() has seeded with a default value of 1 for quite a long time, and is checked by the test mentioned above. The previous commit to change the default seed value must be reverted to keep compatibility. Change qrand() and qsrand() back to the way they were in 4.5. This fixes the qrand() regression. Change QUuid::createUuid() to seed exactly once per thread, which is a change from 4.5, where QUuid would see only once per application. This solves the original bug, QTBUG-3543, where multiple threads would generate the same UUID sequences. This also fixes the regression reported in QTBUG-11213, where seeding did not happen in certain cases. Reviewed-by: Prasanth Ullattil
Diffstat (limited to 'src/opengl')
0 files changed, 0 insertions, 0 deletions