aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_process_cycle.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2016-08-04 01:15:41 +0300
committerRuslan Ermilov <ru@nginx.com>2016-08-04 01:15:41 +0300
commite62a16e8f60b7f66418eb2d4084025b98f4c3575 (patch)
treef9bae7a153f8795ce9b1b69231ef66c21d0ddf77 /src/os/unix/ngx_process_cycle.c
parent38ca99cf98afb8155e3bdc37575beb0a4b1b6723 (diff)
downloadnginx-e62a16e8f60b7f66418eb2d4084025b98f4c3575.tar.gz
nginx-e62a16e8f60b7f66418eb2d4084025b98f4c3575.zip
Win32: added per-thread random seeding.
The change in b91bcba29351 was not enough to fix random() seeding. On Windows, the srand() seeds the PRNG only in the current thread, and worse, is not inherited from the calling thread. Due to this, worker threads were not properly seeded. Reported by Marc Bevand.
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
0 files changed, 0 insertions, 0 deletions