diff options
author | jmc <> | 2008-03-16 22:18:24 +0000 |
---|---|---|
committer | jmc <> | 2008-03-16 22:18:24 +0000 |
commit | 52d13c97d509b4115ee09ed44a8768febdca78ec (patch) | |
tree | a18cc92c606a614df42c7296fadbe4640bf7d33c /src/lib/libc/crypt | |
parent | cc2989c6f0e0f7187e56a15e8c1d81f679b4a6a6 (diff) | |
download | openbsd-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.3 | 6 |
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 |
91 | is recommended over constructions like | 93 | is recommended over constructions like |
92 | .Do Li arc4random() % upper_bound Dc | 94 | .Dq Li arc4random() % upper_bound |
93 | as it avoids "modulo bias" when the upper bound is not a power of two. | 95 | as it avoids "modulo bias" when the upper bound is not a power of two. |
94 | .Pp | 96 | .Pp |
95 | The | 97 | The |