[Development] qsrand(31415) int qt3d
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;
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?
DIGITAL - Institute of Information and Communication Technologies
JOANNEUM RESEARCH Forschungsgesellschaft mbH
Steyrergasse 17, 8010 Graz, AUSTRIA
general fax: +43-316-876-1191
e-mail: helmut.mülner at joanneum.at<mailto:helmut.mülner at joanneum.at>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Development