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

Android: qsrand() thread affinity does not work

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes