Details
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
- depends on
-
QTBUG-32091 Android: calling Java APIs from C++ code
- Closed
For Gerrit Dashboard: QTBUG-32814 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
67937,3 | Android: Use java.util.Random in qrand() | stable | qt/qtbase | Status: MERGED | +2 | 0 |