Module Name: src
Committed By: riastradh
Date: Mon Nov 17 06:37:23 UTC 2014
Modified Files:
src/lib/libc/gen: arc4random.3
Log Message:
Note relation of arc4random(3) to rand(3)/random(3).
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libc/gen/arc4random.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/arc4random.3
diff -u src/lib/libc/gen/arc4random.3:1.11 src/lib/libc/gen/arc4random.3:1.12
--- src/lib/libc/gen/arc4random.3:1.11 Sun Nov 16 20:37:35 2014
+++ src/lib/libc/gen/arc4random.3 Mon Nov 17 06:37:23 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: arc4random.3,v 1.11 2014/11/16 20:37:35 wiz Exp $
+.\" $NetBSD: arc4random.3,v 1.12 2014/11/17 06:37:23 riastradh Exp $
.\"
.\" Copyright (c) 2014 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -58,7 +58,12 @@ family of functions provides a cryptogra
generator automatically seeded from the system entropy pool and safe to
use from multiple threads.
.Nm
-is faster and more convenient than reading from
+is designed to prevent an adversary from guessing outputs,
+unlike
+.Xr rand 3
+and
+.Xr random 3 ,
+and is faster and more convenient than reading from
.Pa /dev/urandom
directly.
.Pp