summaryrefslogtreecommitdiff
path: root/src/lib/libc/crypt
diff options
context:
space:
mode:
authorjmc <>2013-10-22 06:51:41 +0000
committerjmc <>2013-10-22 06:51:41 +0000
commit99f36bb6bbe7e097ecb64645a1a37030afe8efed (patch)
tree79600f114fbbb23c7ab14fbda7571c11e5caf0d4 /src/lib/libc/crypt
parent8c1a7ae619cb339f1895ccb376a2ea0e065bf2ff (diff)
downloadopenbsd-99f36bb6bbe7e097ecb64645a1a37030afe8efed.tar.gz
openbsd-99f36bb6bbe7e097ecb64645a1a37030afe8efed.tar.bz2
openbsd-99f36bb6bbe7e097ecb64645a1a37030afe8efed.zip
tweak previous;
Diffstat (limited to 'src/lib/libc/crypt')
-rw-r--r--src/lib/libc/crypt/arc4random.36
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libc/crypt/arc4random.3 b/src/lib/libc/crypt/arc4random.3
index 5344769d75..476bc28017 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.31 2013/10/22 06:40:36 deraadt Exp $ 1.\" $OpenBSD: arc4random.3,v 1.32 2013/10/22 06:51:41 jmc 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.
@@ -93,7 +93,6 @@ as it avoids "modulo bias" when the upper bound is not a power of two.
93In the worst case, this function may consume multiple iterations 93In the worst case, this function may consume multiple iterations
94to ensure uniformity; see the source code to understand the problem 94to ensure uniformity; see the source code to understand the problem
95and solution. 95and solution.
96.Pp
97.Sh RETURN VALUES 96.Sh RETURN VALUES
98These functions are always successful, and no return value is 97These functions are always successful, and no return value is
99reserved to indicate an error. 98reserved to indicate an error.
@@ -102,14 +101,13 @@ reserved to indicate an error.
102.Xr rand48 3 , 101.Xr rand48 3 ,
103.Xr random 3 102.Xr random 3
104.Sh HISTORY 103.Sh HISTORY
105.Pp
106These functions first appeared in 104These functions first appeared in
107.Ox 2.1 . 105.Ox 2.1 .
108.Pp 106.Pp
109The original version of this random number generator used the 107The original version of this random number generator used the
110RC4 (also known as ARC4) algorithm. 108RC4 (also known as ARC4) algorithm.
111In 109In
112.Ox 5.5 , 110.Ox 5.5
113it was replaced with the ChaCha20 cipher, and it may be replaced 111it was replaced with the ChaCha20 cipher, and it may be replaced
114again in the future as cryptographic techniques advance. 112again in the future as cryptographic techniques advance.
115A good mnemonic is 113A good mnemonic is