summaryrefslogtreecommitdiff
path: root/sys/man/3
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-08-27 21:27:52 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-08-27 21:27:52 +0200
commitb59aa679226d0775838f87289b60bf9b7c626315 (patch)
tree2c5661a6a8d313b43ed4900a7eb8be488a494096 /sys/man/3
parentf777743b7242e539a8ac806e4e15c4b527be4bb6 (diff)
rand(2), cons(3): clarify /dev/random behaviour
Diffstat (limited to 'sys/man/3')
-rw-r--r--sys/man/3/cons11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/man/3/cons b/sys/man/3/cons
index a12f1cf23..d9f75368a 100644
--- a/sys/man/3/cons
+++ b/sys/man/3/cons
@@ -114,13 +114,10 @@ The hostowner also has group permissions for any local devices.
.PP
Reads from
.B random
-return a stream of random numbers. The numbers are
-generated by a low priority kernel process that loops
-incrementing a variable. Each clock tick the variable
-is sampled and, if it has changed sufficiently, the last
-few bits are appended to a buffer. This process is inefficient
-at best producing at most a few hundred bits a second.
-Therefore,
+return a stream of random bytes produced by the kernels cryptographic
+random number generator. The rate at which data can be read depends on
+the implementation and can vary from hundreds of megabytes to just
+a few hundred bits a second. Therefore,
.B random
should be treated as a seed to
pseudo-random number generators which can produce a faster