summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-05-29 03:19:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-05-29 03:19:44 +0000
commit650a9d0a408f0e1723c6b592071eec5b369815b4 (patch)
tree18760d47762162e1bf5840689fc0085974972269 /share/man
parent9f683ef2f51271554b006059a7fae8d0adab1c19 (diff)
add_random() died years ago. additionally, remove other mistruths or
repetitive statements.
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man9/arc4random.924
1 files changed, 4 insertions, 20 deletions
diff --git a/share/man/man9/arc4random.9 b/share/man/man9/arc4random.9
index 5d49642ad9d..6dc6ab2cfc4 100644
--- a/share/man/man9/arc4random.9
+++ b/share/man/man9/arc4random.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: arc4random.9,v 1.14 2018/04/28 20:25:07 jmc Exp $
+.\" $OpenBSD: arc4random.9,v 1.15 2020/05/29 03:19:43 deraadt Exp $
.\"
.\" Copyright (c) 1996,2000 Michael Shalayeff
.\" All rights reserved.
@@ -23,7 +23,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 28 2018 $
+.Dd $Mdocdate: May 29 2020 $
.Dt ARC4RANDOM 9
.Os
.Sh NAME
@@ -40,21 +40,9 @@
.Fn arc4random_buf "void *buf" "size_t nbytes"
.Ft u_int32_t
.Fn arc4random_uniform "u_int32_t upper_bound"
-.In dev/rndvar.h
.Ft void
.Fn enqueue_randomness "int"
.Sh DESCRIPTION
-The
-.Fn add_random
-functions below mix input into the system entropy pool, which is then used
-to create a key for the ChaCha stream cipher used in the
-.Fn arc4random
-series of functions.
-.Pp
-.Fn enqueue_randomness
-causes the supplied data argument to be added to the entropy pool,
-increasing the entropy counter by 32 bits.
-.Pp
.Fn arc4random
and
.Fn arc4random_buf
@@ -69,12 +57,8 @@ In the worst case, this function may consume multiple iterations
to ensure uniformity; see the source code to understand the problem
and solution.
.Pp
-.Fn arc4random ,
-.Fn arc4random_buf ,
-and
-.Fn arc4random_uniform
-may be called in nearly any kernel context.
+.Fn enqueue_randomness
+causes the supplied data argument to be added to the entropy pool.
.Sh SEE ALSO
.Xr arc4random 3 ,
-.Xr pchb 4 ,
.Xr random 4