|
@ -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> |
|
|
.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> |
|
|
.\" All rights reserved. |
|
|
.\" All rights reserved. |
|
@ -30,7 +30,7 @@ |
|
|
.\" |
|
|
.\" |
|
|
.\" Manual page, using -mandoc macros |
|
|
.\" Manual page, using -mandoc macros |
|
|
.\" |
|
|
.\" |
|
|
.Dd $Mdocdate: March 16 2008 $ |
|
|
|
|
|
|
|
|
.Dd $Mdocdate: June 8 2008 $ |
|
|
.Dt ARC4RANDOM 3 |
|
|
.Dt ARC4RANDOM 3 |
|
|
.Os |
|
|
.Os |
|
|
.Sh NAME |
|
|
.Sh NAME |
|
@ -96,8 +96,10 @@ as it avoids "modulo bias" when the upper bound is not a power of two. |
|
|
.Pp |
|
|
.Pp |
|
|
The |
|
|
The |
|
|
.Fn arc4random_stir |
|
|
.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 |
|
|
and uses it to permute the S-Boxes via |
|
|
.Fn arc4random_addrandom . |
|
|
.Fn arc4random_addrandom . |
|
|
.Pp |
|
|
.Pp |
|
|