Deleted Added
full compact
rand.3 (83206) rand.3 (108037)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)rand.3 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)rand.3 8.1 (Berkeley) 6/4/93
37.\" $FreeBSD: head/lib/libc/stdlib/rand.3 83206 2001-09-07 14:46:36Z asmodai $
37.\" $FreeBSD: head/lib/libc/stdlib/rand.3 108037 2002-12-18 12:45:11Z ru $
38.\"
39.Dd May 25, 1999
40.Dt RAND 3
41.Os
42.Sh NAME
43.Nm rand ,
44.Nm srand ,
45.Nm sranddev ,

--- 43 unchanged lines hidden (view full) ---

89.Pp
90The
91.Fn sranddev
92function initializes a seed using the
93.Xr random 4
94random number device which returns good random numbers,
95suitable for cryptographic use.
96.Pp
38.\"
39.Dd May 25, 1999
40.Dt RAND 3
41.Os
42.Sh NAME
43.Nm rand ,
44.Nm srand ,
45.Nm sranddev ,

--- 43 unchanged lines hidden (view full) ---

89.Pp
90The
91.Fn sranddev
92function initializes a seed using the
93.Xr random 4
94random number device which returns good random numbers,
95suitable for cryptographic use.
96.Pp
97The
97.Fn rand_r
98.Fn rand_r
99function
98provides the same functionality as
99.Fn rand .
100A pointer to the context value
101.Fa ctx
102must be supplied by the caller.
103.Sh SEE ALSO
104.Xr random 3 ,
105.Xr random 4

--- 12 unchanged lines hidden ---
100provides the same functionality as
101.Fn rand .
102A pointer to the context value
103.Fa ctx
104must be supplied by the caller.
105.Sh SEE ALSO
106.Xr random 3 ,
107.Xr random 4

--- 12 unchanged lines hidden ---