diff options
Diffstat (limited to 'src/lib/libc/stdlib/random.3')
| -rw-r--r-- | src/lib/libc/stdlib/random.3 | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/random.3 b/src/lib/libc/stdlib/random.3 index 87a4fe253f..b57dcd15e3 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.4 1998/02/06 01:49:08 deraadt Exp $ | 32 | .\" $OpenBSD: random.3,v 1.5 1998/02/07 02:16:25 millert Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd April 19, 1991 | 34 | .Dd April 19, 1991 |
| 35 | .Dt RANDOM 3 | 35 | .Dt RANDOM 3 |
| @@ -45,11 +45,11 @@ | |||
| 45 | .Ft long | 45 | .Ft long |
| 46 | .Fn random void | 46 | .Fn random void |
| 47 | .Ft void | 47 | .Ft void |
| 48 | .Fn srandom "unsigned seed" | 48 | .Fn srandom "unsigned int seed" |
| 49 | .Ft char * | 49 | .Ft char * |
| 50 | .Fn initstate "unsigned seed" "char *state" "size_t n" | 50 | .Fn initstate "unsigned int seed" "char *state" "size_t n" |
| 51 | .Ft char * | 51 | .Ft char * |
| 52 | .Fn setstate "char *state" | 52 | .Fn setstate "const char *state" |
| 53 | .Sh DESCRIPTION | 53 | .Sh DESCRIPTION |
| 54 | The | 54 | The |
| 55 | .Fn random | 55 | .Fn random |
| @@ -162,7 +162,17 @@ is called with less than 8 bytes of state information, or if | |||
| 162 | detects that the state information has been garbled, error | 162 | detects that the state information has been garbled, error |
| 163 | messages are printed on the standard error output. | 163 | messages are printed on the standard error output. |
| 164 | .Sh SEE ALSO | 164 | .Sh SEE ALSO |
| 165 | .Xr drand48 3 , | ||
| 165 | .Xr rand 3 | 166 | .Xr rand 3 |
| 167 | .Sh STANDARDS | ||
| 168 | The | ||
| 169 | .Fn random , | ||
| 170 | .Fn srandom , | ||
| 171 | .Fn initstate , | ||
| 172 | and | ||
| 173 | .Fn setstate | ||
| 174 | functions conform to | ||
| 175 | .St -xpg4.2 . | ||
| 166 | .Sh HISTORY | 176 | .Sh HISTORY |
| 167 | These | 177 | These |
| 168 | functions appeared in | 178 | functions appeared in |
