diff options
| author | Christian Strømme <christian.stromme@digia.com> | 2013-10-11 14:55:33 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-17 01:49:19 +0200 |
| commit | 021c79f038c218a55b145fafcda5c59cf3a309d8 (patch) | |
| tree | 7fad7d283bafcc49a43c6e6836d5e04b3c9a4314 /src/corelib/json/qjsonobject.cpp | |
| parent | d0b419e35521d50f1409de84f99ded3b9a7ab01d (diff) | |
Android: Use java.util.Random in qrand()
Android does not provide rand_r(), so we would fall back to rand()
and srand() which means we where not keeping the promise of qrand
and qsrand being thread-safe. As a replacement we can use the Java
api and have one Random object for each thread.
Task-number: QTBUG-32814
Change-Id: Id46d195a0bb122bc7a5a8de43bdf088e11a9c42e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/corelib/json/qjsonobject.cpp')
0 files changed, 0 insertions, 0 deletions
