Browse Source

- add NAME entries for arc4random_buf and arc4random_uniform

- simplify a macro call (Do/Dc -> Dq)
OPENBSD_4_4
jmc 16 years ago
parent
commit
8c8d34acf3
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/lib/libc/crypt/arc4random.3

+ 4
- 2
src/lib/libc/crypt/arc4random.3 View File

@ -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


Loading…
Cancel
Save