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

Android: qsrand() has no effect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.1
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      Android
    • Commits:
      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            esabraha Eskil Abrahamsen Blomfeldt
            Reporter:
            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