summaryrefslogtreecommitdiffstats
path: root/header.LGPL-ONLY
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2010-07-08 06:42:27 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2010-07-08 08:30:18 (GMT)
commit2ef8b92ececbf9d33d7c0b44f46c7c975fb0fdaa (patch)
treea5d52addbee11e8accf79ea4a9cc44331388f841 /header.LGPL-ONLY
parentad957b76682dfddb2576154f56b5017680819eef (diff)
downloadQt-2ef8b92ececbf9d33d7c0b44f46c7c975fb0fdaa.zip
Qt-2ef8b92ececbf9d33d7c0b44f46c7c975fb0fdaa.tar.gz
Qt-2ef8b92ececbf9d33d7c0b44f46c7c975fb0fdaa.tar.bz2
QUUid::createUuid() should not generate identical sequences on UNIX
An unintended side-effect of commit 90a082c9076f35dcca092ade019891e92692710e is that if qrand() is used without being seeded first, then createUuid() would always generate the same sequence. This quite likely to happen considering the Qt does not actually seed the PRNG, but does use it in many places (we do not call qsrand(), but we do often call qrand()). Fix this by changing qrand() to calculate a seed, instead of defaulting to 1. This allows us to remove the qsrand() overload with no arguments, since qrand() will now seed automatically unless manually seeded by the programmer. Task-number: QTBUG-11213 Reviewed-by: thiago
Diffstat (limited to 'header.LGPL-ONLY')
0 files changed, 0 insertions, 0 deletions