Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-32781

Android: qsrand() has no effect

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P1: Critical
    • Resolution: Done
    • 5.1.0
    • 5.1.1
    • Core: Other
    • None
    • Android
    • 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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes