diff options
author | 2008-03-16 22:18:24 +0000 | |
---|---|---|
committer | 2008-03-16 22:18:24 +0000 | |
commit | db26d1218f470b71a4f45bf88dddb210da7036f8 (patch) | |
tree | eda0b327380241ab62d56fe7f7f1b89d29e84064 /lib/libc/crypt | |
parent | Add missing MLINKS (diff) | |
download | wireguard-openbsd-db26d1218f470b71a4f45bf88dddb210da7036f8.tar.xz wireguard-openbsd-db26d1218f470b71a4f45bf88dddb210da7036f8.zip |
- add NAME entries for arc4random_buf and arc4random_uniform
- simplify a macro call (Do/Dc -> Dq)
Diffstat (limited to 'lib/libc/crypt')
-rw-r--r-- | lib/libc/crypt/arc4random.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/crypt/arc4random.3 b/lib/libc/crypt/arc4random.3 index d32ea4a9519..9c9ab8705cf 100644 --- a/lib/libc/crypt/arc4random.3 +++ b/lib/libc/crypt/arc4random.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: arc4random.3,v 1.23 2008/03/16 19:47:43 otto Exp $ +.\" $OpenBSD: arc4random.3,v 1.24 2008/03/16 22:18:24 jmc Exp $ .\" .\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> .\" All rights reserved. @@ -35,6 +35,8 @@ .Os .Sh NAME .Nm arc4random , +.Nm arc4random_buf , +.Nm arc4random_uniform , .Nm arc4random_stir , .Nm arc4random_addrandom .Nd arc4 random number generator @@ -89,7 +91,7 @@ will return a uniformly distributed random number less than .Fa upper_bound . .Fn arc4random_uniform is recommended over constructions like -.Do Li arc4random() % upper_bound Dc +.Dq Li arc4random() % upper_bound as it avoids "modulo bias" when the upper bound is not a power of two. .Pp The |