summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/crypt/arc4random.36
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3
index d32ea4a951..9c9ab8705c 100644
--- a/src/lib/libc/crypt/arc4random.3
+++ b/src/lib/libc/crypt/arc4random.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: arc4random.3,v 1.23 2008/03/16 19:47:43 otto Exp $ 1.\" $OpenBSD: arc4random.3,v 1.24 2008/03/16 22:18:24 jmc Exp $
2.\" 2.\"
3.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 3.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
4.\" All rights reserved. 4.\" All rights reserved.
@@ -35,6 +35,8 @@
35.Os 35.Os
36.Sh NAME 36.Sh NAME
37.Nm arc4random , 37.Nm arc4random ,
38.Nm arc4random_buf ,
39.Nm arc4random_uniform ,
38.Nm arc4random_stir , 40.Nm arc4random_stir ,
39.Nm arc4random_addrandom 41.Nm arc4random_addrandom
40.Nd arc4 random number generator 42.Nd arc4 random number generator
@@ -89,7 +91,7 @@ will return a uniformly distributed random number less than
89.Fa upper_bound . 91.Fa upper_bound .
90.Fn arc4random_uniform 92.Fn arc4random_uniform
91is recommended over constructions like 93is recommended over constructions like
92.Do Li arc4random() % upper_bound Dc 94.Dq Li arc4random() % upper_bound
93as it avoids "modulo bias" when the upper bound is not a power of two. 95as it avoids "modulo bias" when the upper bound is not a power of two.
94.Pp 96.Pp
95The 97The