Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt3D 1.0
-
None
-
Ic4e0dde4a3ec63f047b8ddbf9c06e922ac7787dd
Description
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.