summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authorjmc <>2008-03-16 22:18:24 +0000
committerjmc <>2008-03-16 22:18:24 +0000
commit52d13c97d509b4115ee09ed44a8768febdca78ec (patch)
treea18cc92c606a614df42c7296fadbe4640bf7d33c /src/lib/libc/crypt
parentcc2989c6f0e0f7187e56a15e8c1d81f679b4a6a6 (diff)
downloadopenbsd-52d13c97d509b4115ee09ed44a8768febdca78ec.tar.gz
openbsd-52d13c97d509b4115ee09ed44a8768febdca78ec.tar.bz2
openbsd-52d13c97d509b4115ee09ed44a8768febdca78ec.zip
- add NAME entries for arc4random_buf and arc4random_uniform
- simplify a macro call (Do/Dc -> Dq)
Diffstat (limited to 'src/lib/libc/crypt')
-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