Browse Source

arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandom

OPENBSD_4_4
deraadt 16 years ago
parent
commit
badc137d26
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      src/lib/libc/crypt/arc4random.3

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

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


Loading…
Cancel
Save