summaryrefslogtreecommitdiffstats
path: root/share/man/man4/random.4
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2003-02-23 17:22:20 +0000
committerdwmalone <dwmalone@FreeBSD.org>2003-02-23 17:22:20 +0000
commit0298089e64b4d0c60999f408afbcfbb4c7fc08a0 (patch)
tree1fb365d1d3952f67d76c20f2cd7fab82071697ad /share/man/man4/random.4
parentdff9ad9d4466cd10a9d3eb787a6638565fd087c0 (diff)
downloadFreeBSD-src-0298089e64b4d0c60999f408afbcfbb4c7fc08a0.zip
FreeBSD-src-0298089e64b4d0c60999f408afbcfbb4c7fc08a0.tar.gz
A few improvements suggested by nectar.
Diffstat (limited to 'share/man/man4/random.4')
-rw-r--r--share/man/man4/random.415
1 files changed, 12 insertions, 3 deletions
diff --git a/share/man/man4/random.4 b/share/man/man4/random.4
index 9a216c3..a61c107 100644
--- a/share/man/man4/random.4
+++ b/share/man/man4/random.4
@@ -171,7 +171,7 @@ requires cryptographic randomness.
A cryptographic random number generator should be designed
so that its output is difficult to guess,
even if a lot of auxiliary information is known
-(such as when it was seeded, subsequent or previous output, ...).
+(such as when it was seeded, subsequent or previous output, and so on).
On
.Fx ,
seeding for cryptographic random number generators is provided by the
@@ -183,7 +183,14 @@ The
library call provides a pseudo-random sequence
which is generally reckoned to be suitable for
simple cryptographic use.
-The OpenSSL library also provides functions for managing randomness.
+The OpenSSL library also provides functions for managing randomness
+via functions such as
+.Xr RAND_bytes 3
+and
+.Xr RAND_add 3 .
+Note that OpenSSL uses the
+.Nm
+device for seeding automatically.
.Pp
Randomness for simulation is required in engineering or
scientific software and games.
@@ -231,7 +238,7 @@ are provided for deterministically setting
the state of the generator and
the function
.Xr srandomdev 3
-is provided for setting the state the
+is provided for setting the state via the
.Nm
device.
The
@@ -278,6 +285,8 @@ so its use is discouraged.
.It Pa /dev/random
.El
.Sh SEE ALSO
+.Xr RAND_add 3 ,
+.Xr RAND_bytes 3 ,
.Xr arc4random 3 ,
.Xr drand48 3 ,
.Xr rand 3 ,
OpenPOWER on IntegriCloud