From 3bccb7f358e27f932c951a55bc17aa113bfae5f0 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 10 Jul 2017 21:07:12 +0300 Subject: Introducing thread-safe nxt_random(). --- src/nxt_thread.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nxt_thread.c') diff --git a/src/nxt_thread.c b/src/nxt_thread.c index 851ebb4f..0619ad1b 100644 --- a/src/nxt_thread.c +++ b/src/nxt_thread.c @@ -160,6 +160,8 @@ nxt_thread_init(void) nxt_thread_time_update(thr); } + nxt_random_init(&thr->random); + return thr; } -- cgit