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

Android: qsrand() thread affinity does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.2.0
    • 5.1.0
    • QPA
    • None
    • Android
    • 021c79f038c218a55b145fafcda5c59cf3a309d8

    Description

      According to Qt documentation, each thread should have its own random seed and observe its own random sequence.

      However, since Android does not have the rand_r() function, we fall back to regular srand()/rand() which does not have thread affinity.

      Attachments

        Issue Links

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

          Activity

            People

              stromme Christian
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes