|
|
@ -1,4 +1,4 @@ |
|
|
|
.\" $OpenBSD: arc4random.3,v 1.24 2008/03/16 22:18:24 jmc Exp $ |
|
|
|
.\" $OpenBSD: arc4random.3,v 1.25 2008/06/08 18:37:09 deraadt Exp $ |
|
|
|
.\" |
|
|
|
.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
|
|
|
.\" All rights reserved. |
|
|
@ -30,7 +30,7 @@ |
|
|
|
.\" |
|
|
|
.\" Manual page, using -mandoc macros |
|
|
|
.\" |
|
|
|
.Dd $Mdocdate: March 16 2008 $ |
|
|
|
.Dd $Mdocdate: June 8 2008 $ |
|
|
|
.Dt ARC4RANDOM 3 |
|
|
|
.Os |
|
|
|
.Sh NAME |
|
|
@ -96,8 +96,10 @@ as it avoids "modulo bias" when the upper bound is not a power of two. |
|
|
|
.Pp |
|
|
|
The |
|
|
|
.Fn arc4random_stir |
|
|
|
function reads data from |
|
|
|
.Pa /dev/arandom |
|
|
|
function reads data using |
|
|
|
.Xr sysctl 2 |
|
|
|
from |
|
|
|
.Pa kern.arandom |
|
|
|
and uses it to permute the S-Boxes via |
|
|
|
.Fn arc4random_addrandom . |
|
|
|
.Pp |
|
|
|