summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>2013-08-02 16:12:40 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-06 11:40:38 +0200
commit608a9c12ae342d7093e949f0153c407f5817e2d8 (patch)
tree915715ac3c7e3650332a21cc57387ad8d031c48f /src/plugins/platforms/cocoa
parent1ff8ed1bf5c8f0fe0f0c2e7a5ab62ae539f8c97e (diff)
Enable qsrand() on builds without thread-safe posix
The #ifdef clause in qsrand() needs to be the same as in qrand(). Otherwise, we will store the seed in thread-local storage in qsrand(), never passing it into srand(), and then we'll use regular rand() because the rand_r() function is missing, thus always using a random seed of 1 in all applications. Task-number: QTBUG-32781 Change-Id: I00240a1954ae746b87b031f3a0470a6cbe747571 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/cocoa')
0 files changed, 0 insertions, 0 deletions