summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_random.c')
-rw-r--r--src/nxt_random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_random.c b/src/nxt_random.c
index 0731b7fb..b6c9f704 100644
--- a/src/nxt_random.c
+++ b/src/nxt_random.c
@@ -180,7 +180,7 @@ nxt_random_test(nxt_thread_t *thr)
r.count = 400000;
- nxt_random_add(&r, (u_char *) "arc4random", sizeof("arc4random") - 1);
+ nxt_random_add(&r, (u_char *) "arc4random", nxt_length("arc4random"));
/*
* Test arc4random() numbers.