[Midnightbsd-cvs] src [9463] trunk/lib/libc/stdlib: update documentation for random(3)

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Mar 5 14:39:41 EST 2017


Revision: 9463
          http://svnweb.midnightbsd.org/src/?rev=9463
Author:   laffer1
Date:     2017-03-05 14:39:41 -0500 (Sun, 05 Mar 2017)
Log Message:
-----------
update documentation for random(3)

Modified Paths:
--------------
    trunk/lib/libc/stdlib/rand.3
    trunk/lib/libc/stdlib/random.3

Modified: trunk/lib/libc/stdlib/rand.3
===================================================================
--- trunk/lib/libc/stdlib/rand.3	2017-03-05 19:38:53 UTC (rev 9462)
+++ trunk/lib/libc/stdlib/rand.3	2017-03-05 19:39:41 UTC (rev 9463)
@@ -32,7 +32,7 @@
 .\"     @(#)rand.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd September 4, 2012
+.Dd April 2, 2013
 .Dt RAND 3
 .Os
 .Sh NAME
@@ -91,9 +91,7 @@
 .Pp
 The
 .Fn sranddev
-function initializes a seed using the
-.Xr random 4
-random number device which returns good random numbers.
+function initializes a seed using pseudo-random numbers obtained from the kernel.
 .Pp
 The
 .Fn rand_r

Modified: trunk/lib/libc/stdlib/random.3
===================================================================
--- trunk/lib/libc/stdlib/random.3	2017-03-05 19:38:53 UTC (rev 9462)
+++ trunk/lib/libc/stdlib/random.3	2017-03-05 19:39:41 UTC (rev 9463)
@@ -28,7 +28,7 @@
 .\"     @(#)random.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd September 4, 2012
+.Dd April 2, 2013
 .Dt RANDOM 3
 .Os
 .Sh NAME
@@ -106,8 +106,8 @@
 .Pp
 The
 .Fn srandomdev
-routine initializes a state array using data from
-.Xr random 4 .
+routine initializes a state array using
+pseudo-random numbers obtained from the kernel.
 Note that this particular seeding
 procedure can generate states which are impossible to reproduce by
 calling



More information about the Midnightbsd-cvs mailing list