summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-09-28 14:55:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-09-28 14:55:13 +0000
commit3f7009e1c1c90717a65f5a5a44fd601ee74f1ee7 (patch)
tree38ff72dd6f872154a36a48fdcf5f74d0c5e5fe65 /lib
parent16a010803d3007247de71e990e96da63cf92e94c (diff)
1) don't repeat the 256 / EIO commentary
2) say that the data comes from the random(4) subsystem, so that curious people can go read up on how this works
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getentropy.213
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libc/sys/getentropy.2 b/lib/libc/sys/getentropy.2
index 895ee444551..234969e7a1d 100644
--- a/lib/libc/sys/getentropy.2
+++ b/lib/libc/sys/getentropy.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getentropy.2,v 1.8 2015/01/31 00:20:12 schwarze Exp $
+.\" $OpenBSD: getentropy.2,v 1.9 2019/09/28 14:55:12 deraadt Exp $
.\"
.\" Copyright (c) 2014 Theo de Raadt
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 31 2015 $
+.Dd $Mdocdate: September 28 2019 $
.Dt GETENTROPY 2
.Os
.Sh NAME
@@ -31,16 +31,15 @@ as input for process-context pseudorandom generators like
.Xr arc4random 3 .
.Pp
The maximum buffer size permitted is 256 bytes.
-If
-.Fa buflen
-exceeds this, an error of
-.Er EIO
-will be indicated.
.Pp
.Fn getentropy
is not intended for regular code; please use the
.Xr arc4random 3
family of functions instead.
+.Pp
+The high-quality entropy data is provided by the
+.Xr random 4
+subsystem.
.Sh RETURN VALUES
.Rv -std
.Sh ERRORS