summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authorderaadt <>2008-06-08 18:37:09 +0000
committerderaadt <>2008-06-08 18:37:09 +0000
commit05a412742403894d384795fc7b3358c5278d7f31 (patch)
tree1bb03e968d0a00a0da39810d99820fe10d0c1440 /src/lib/libc/crypt
parent9cb2819066edcb7bd907e9809cc6a87dbf7b3a71 (diff)
downloadopenbsd-05a412742403894d384795fc7b3358c5278d7f31.tar.gz
openbsd-05a412742403894d384795fc7b3358c5278d7f31.tar.bz2
openbsd-05a412742403894d384795fc7b3358c5278d7f31.zip
arc4random_stir() does not use /dev/arandom anymore, but sysctl kern.arandom
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r--src/lib/libc/crypt/arc4random.310
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3
index 9c9ab8705c..db9405aa78 100644
--- a/src/lib/libc/crypt/arc4random.3
+++ b/src/lib/libc/crypt/arc4random.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: arc4random.3,v 1.24 2008/03/16 22:18:24 jmc Exp $ 1.\" $OpenBSD: arc4random.3,v 1.25 2008/06/08 18:37:09 deraadt Exp $
2.\" 2.\"
3.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 3.\" Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
4.\" All rights reserved. 4.\" All rights reserved.
@@ -30,7 +30,7 @@
30.\" 30.\"
31.\" Manual page, using -mandoc macros 31.\" Manual page, using -mandoc macros
32.\" 32.\"
33.Dd $Mdocdate: March 16 2008 $ 33.Dd $Mdocdate: June 8 2008 $
34.Dt ARC4RANDOM 3 34.Dt ARC4RANDOM 3
35.Os 35.Os
36.Sh NAME 36.Sh NAME
@@ -96,8 +96,10 @@ as it avoids "modulo bias" when the upper bound is not a power of two.
96.Pp 96.Pp
97The 97The
98.Fn arc4random_stir 98.Fn arc4random_stir
99function reads data from 99function reads data using
100.Pa /dev/arandom 100.Xr sysctl 2
101from
102.Pa kern.arandom
101and uses it to permute the S-Boxes via 103and uses it to permute the S-Boxes via
102.Fn arc4random_addrandom . 104.Fn arc4random_addrandom .
103.Pp 105.Pp