diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-07-10 21:07:12 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-07-10 21:07:12 +0300 |
commit | 3bccb7f358e27f932c951a55bc17aa113bfae5f0 (patch) | |
tree | 78fc9f0fc0b20c7df284208db901eacc7dd6b6a8 /src/nxt_router.c | |
parent | dc874cd22ef7ec72fc6e5927b1695d4a12536625 (diff) | |
download | unit-3bccb7f358e27f932c951a55bc17aa113bfae5f0.tar.gz unit-3bccb7f358e27f932c951a55bc17aa113bfae5f0.tar.bz2 |
Introducing thread-safe nxt_random().
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r-- | src/nxt_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c index be47e453..8c5236be 100644 --- a/src/nxt_router.c +++ b/src/nxt_router.c @@ -1655,7 +1655,7 @@ nxt_router_process_http_request(nxt_task_t *task, nxt_conn_t *c, engine = task->thread->engine; do { - req_id = nxt_random(&nxt_random_data); + req_id = nxt_random(&task->thread->random); } while (nxt_event_engine_request_find(engine, req_id) != NULL); rc = nxt_conn_request_add(c, req_id); |