Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.1.0
-
None
-
-
608a9c12ae342d7093e949f0153c407f5817e2d8
Description
This is demonstrated by running the test in tests/auto/corelib/global/qrand/. This will verify that qrand() with no explicit seed will generate the same sequence as with qsrand(1) by generating X numbers, then doing qsrand(1), then generating X numbers and verifying that they are the same.
However, qsrand() has no effect, so the subsequent X numbers are just the numbers following the first X in the srand(1) sequence.