[Development] qsrand(31415) int qt3d
Mülner, Helmut
helmut.muelner at joanneum.at
Thu Aug 2 14:33:32 CEST 2012
I already sent this to the qt3d mailing list, but nobody reacts on this list (maybe due to the Bisbane situation):
qglsection.cpp contains the following lines in the method QGLSectionPrivate::mapVertex:
static bool seeded = false;
if (!seeded)
qsrand(31415);
This makes the random number generator not very random!
The tank example uses the usual qsrand(time(0)) which is superseded by qsrand(31415).
Therefore the colors are always the same, when one starts the programs.
I think these lines can and should be removed.
I have no(t yet) access to gerrit, so could someone push this change?
Thank you
--
Helmut Mülner
DIGITAL - Institute of Information and Communication Technologies
JOANNEUM RESEARCH Forschungsgesellschaft mbH
Steyrergasse 17, 8010 Graz, AUSTRIA
phone: +43-316-876-2612
general fax: +43-316-876-1191
web: http://www.joanneum.at/digital
e-mail: helmut.mülner at joanneum.at<mailto:helmut.mülner at joanneum.at>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120802/6ae2cc33/attachment.html>
More information about the Development
mailing list