Loading...
stdlib/FreeBSD/random.3.patch Libc-763.12 Libc-583
--- Libc/Libc-763.12/stdlib/FreeBSD/random.3.patch
+++ Libc/Libc-583/stdlib/FreeBSD/random.3.patch
@@ -1,6 +1,6 @@
---- random.3.orig	2010-04-28 23:38:47.000000000 -0700
-+++ random.3	2010-04-29 09:47:13.000000000 -0700
-@@ -32,32 +32,45 @@
+--- random.3	2004-11-25 11:38:42.000000000 -0800
++++ random.3.edit	2006-07-12 11:25:20.000000000 -0700
+@@ -36,32 +36,45 @@
  .Dt RANDOM 3
  .Os
  .Sh NAME
@@ -58,7 +58,7 @@
  numbers in the range from 0 to
  .if t 2\u\s731\s10\d\(mi1.
  .if n (2**31)\(mi1.
-@@ -78,7 +91,7 @@ The difference is that
+@@ -82,7 +95,7 @@
  .Xr rand 3
  produces a much less random sequence \(em in fact, the low dozen bits
  generated by rand go through a cyclic pattern.
@@ -67,24 +67,7 @@
  .Fn random
  are usable.
  For example,
-@@ -87,18 +100,21 @@ will produce a random binary
- value.
- .Pp
- Like
-+.Xr srand 3 ,
-+.Fn srandom
-+sets the initial seed value for future calls to
-+.Fn random .
-+Like
- .Xr rand 3 ,
- .Fn random
- will by default produce a sequence of numbers that can be duplicated
- by calling
- .Fn srandom
--with
--.Ql 1
--as the seed.
-+with the same seed.
+@@ -102,7 +115,7 @@
  .Pp
  The
  .Fn srandomdev
@@ -93,7 +76,7 @@
  .Xr random 4
  random number device which returns good random numbers,
  suitable for cryptographic use.
-@@ -123,7 +139,7 @@ more state, the better the random number
+@@ -127,7 +140,7 @@
  the nearest known amount.
  Using less than 8 bytes will cause an error.)
  The seed for the initialization (which specifies a starting point for
@@ -102,16 +85,16 @@
  point) is also an argument.
  The
  .Fn initstate
-@@ -162,7 +178,7 @@ it is initialized.
+@@ -166,7 +179,7 @@
  With 256 bytes of state information, the period of the random number
  generator is greater than
  .if t 2\u\s769\s10\d,
 -.if n 2**69
 +.if n 2**69 ,
  which should be sufficient for most purposes.
- .Sh DIAGNOSTICS
- If
-@@ -171,11 +187,36 @@ is called with less than 8 bytes of stat
+ .Sh AUTHORS
+ .An Earl T. Cohen
+@@ -177,11 +190,36 @@
  .Fn setstate
  detects that the state information has been garbled, error
  messages are printed on the standard error output.