diff options
Diffstat (limited to 'src/lib/libc/stdlib/random.3')
| -rw-r--r-- | src/lib/libc/stdlib/random.3 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3 index 47cdfea9b3..e1ab9e44da 100644 --- a/src/lib/libc/stdlib/random.3 +++ b/src/lib/libc/stdlib/random.3 | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
| 31 | .\" | 31 | .\" |
| 32 | .\" $OpenBSD: random.3,v 1.7 1999/05/23 14:11:03 aaron Exp $ | 32 | .\" $OpenBSD: random.3,v 1.8 1999/06/29 18:36:23 aaron Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd April 19, 1991 | 34 | .Dd April 19, 1991 |
| 35 | .Dt RANDOM 3 | 35 | .Dt RANDOM 3 |
| @@ -42,7 +42,7 @@ | |||
| 42 | .Nd better random number generator; routines for changing generators | 42 | .Nd better random number generator; routines for changing generators |
| 43 | .Sh SYNOPSIS | 43 | .Sh SYNOPSIS |
| 44 | .Fd #include <stdlib.h> | 44 | .Fd #include <stdlib.h> |
| 45 | .Ft long | 45 | .Ft long |
| 46 | .Fn random void | 46 | .Fn random void |
| 47 | .Ft void | 47 | .Ft void |
| 48 | .Fn srandom "unsigned int seed" | 48 | .Fn srandom "unsigned int seed" |
| @@ -96,7 +96,7 @@ however, | |||
| 96 | will by default produce a sequence of numbers that can be duplicated | 96 | will by default produce a sequence of numbers that can be duplicated |
| 97 | by calling | 97 | by calling |
| 98 | .Fn srandom | 98 | .Fn srandom |
| 99 | with | 99 | with |
| 100 | .Ql 1 | 100 | .Ql 1 |
| 101 | as the seed. | 101 | as the seed. |
| 102 | .Pp | 102 | .Pp |
| @@ -167,16 +167,16 @@ messages are printed on the standard error output. | |||
| 167 | .Xr rand 3 | 167 | .Xr rand 3 |
| 168 | .Sh STANDARDS | 168 | .Sh STANDARDS |
| 169 | The | 169 | The |
| 170 | .Fn random , | 170 | .Fn random , |
| 171 | .Fn srandom , | 171 | .Fn srandom , |
| 172 | .Fn initstate , | 172 | .Fn initstate , |
| 173 | and | 173 | and |
| 174 | .Fn setstate | 174 | .Fn setstate |
| 175 | functions conform to | 175 | functions conform to |
| 176 | .St -xpg4.2 . | 176 | .St -xpg4.2 . |
| 177 | .Sh HISTORY | 177 | .Sh HISTORY |
| 178 | These | 178 | These |
| 179 | functions appeared in | 179 | functions appeared in |
| 180 | .Bx 4.2 . | 180 | .Bx 4.2 . |
| 181 | .Sh BUGS | 181 | .Sh BUGS |
| 182 | About 2/3 the speed of | 182 | About 2/3 the speed of |
