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.
Attachments
For Gerrit Dashboard: QTBUG-32781 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
62151,1 | Enable qsrand() on builds without thread-safe posix | release | qt/qtbase | Status: MERGED | +2 | 0 |