summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorassar <assar@openbsd.org>2001-06-09 01:41:59 +0000
committerassar <assar@openbsd.org>2001-06-09 01:41:59 +0000
commit83292d3878f173e1ac6b2b79d65ea31b659e0b4b (patch)
treeea4e52ddf52ddd27743b7b7432ac4e45518eb337
parentAllow wskbd_cngetc() to return any key pressed, not just ones in the ASCII (diff)
downloadwireguard-openbsd-83292d3878f173e1ac6b2b79d65ea31b659e0b4b.tar.xz
wireguard-openbsd-83292d3878f173e1ac6b2b79d65ea31b659e0b4b.zip
remove confusing comparison with srand (it does not return the old seed)
use .Sh AUTHORS and .An for author
-rw-r--r--lib/libc/stdlib/random.314
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/libc/stdlib/random.3 b/lib/libc/stdlib/random.3
index d3a3198ebfb..548c5aae7a8 100644
--- a/lib/libc/stdlib/random.3
+++ b/lib/libc/stdlib/random.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: random.3,v 1.12 2000/04/20 13:50:02 aaron Exp $
+.\" $OpenBSD: random.3,v 1.13 2001/06/09 01:41:59 assar Exp $
.\"
.Dd April 19, 1991
.Dt RANDOM 3
@@ -81,16 +81,8 @@ For example,
will produce a random binary
value.
.Pp
-Unlike
-.Xr srand ,
-.Fn srandom
-does not return the old seed; the reason for this is that the amount of
-state information used is much more than a single word.
-(Two other routines are provided to deal with restarting/changing random
-number generators).
Like
.Xr rand 3 ,
-however,
.Fn random
will by default produce a sequence of numbers that can be duplicated
by calling
@@ -162,8 +154,8 @@ it is initialized.
With 256 bytes of state information, the period of the random number
generator is greater than 2**69
which should be sufficient for most purposes.
-.Sh AUTHOR
-Earl T. Cohen
+.Sh AUTHORS
+.An Earl T. Cohen
.Sh DIAGNOSTICS
If
.Fn initstate