diff options
Diffstat (limited to 'src/nxt_random.c')
-rw-r--r-- | src/nxt_random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_random.c b/src/nxt_random.c index aaa39887..1211896c 100644 --- a/src/nxt_random.c +++ b/src/nxt_random.c @@ -99,7 +99,7 @@ nxt_random_stir(nxt_random_t *r) key.value[0] ^= tv.tv_usec; key.value[1] ^= tv.tv_sec; key.value[2] ^= nxt_pid; - key.value[3] ^= (uintptr_t) nxt_thread_tid(NULL); + key.value[3] ^= (uintptr_t) nxt_thread_tid(nxt_thread()); } nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE); |