From badc137d263e7d51672613cb6b30750062e8c75f Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Sun, 8 Jun 2008 18:37:09 +0000 Subject: [PATCH] arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandom --- src/lib/libc/crypt/arc4random.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3 index 9c9ab870..db9405aa 100644 --- a/src/lib/libc/crypt/arc4random.3 +++ b/src/lib/libc/crypt/arc4random.3 @@ -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 .\" 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