View | Details | Raw Unified | Return to bug 27858 | Differences between
and this patch

Collapse All | Expand All

(-)rand.3 (-2 / +2 lines)
Lines 89-95 Link Here
89
The
89
The
90
.Fn sranddev
90
.Fn sranddev
91
function initializes a seed using the
91
function initializes a seed using the
92
.Xr urandom 4
92
.Xr random 4
93
random number device which returns good random numbers,
93
random number device which returns good random numbers,
94
suitable for cryptographic use.
94
suitable for cryptographic use.
95
.Pp
95
.Pp
Lines 101-107 Link Here
101
must be supplied by the caller.
101
must be supplied by the caller.
102
.Sh SEE ALSO
102
.Sh SEE ALSO
103
.Xr random 3 ,
103
.Xr random 3 ,
104
.Xr urandom 4
104
.Xr random 4
105
.Sh STANDARDS
105
.Sh STANDARDS
106
The
106
The
107
.Fn rand
107
.Fn rand
(-)rand.c (-1 / +1 lines)
Lines 111-117 Link Here
111
 *
111
 *
112
 * Many programs choose the seed value in a totally predictable manner.
112
 * Many programs choose the seed value in a totally predictable manner.
113
 * This often causes problems.  We seed the generator using the much more
113
 * This often causes problems.  We seed the generator using the much more
114
 * secure urandom(4) interface.
114
 * secure random(4) interface.
115
 */
115
 */
116
void
116
void
117
sranddev()
117
sranddev()
(-)random.3 (-2 / +2 lines)
Lines 101-107 Link Here
101
The
101
The
102
.Fn srandomdev
102
.Fn srandomdev
103
routine initialize a state array using
103
routine initialize a state array using
104
.Xr urandom 4
104
.Xr random 4
105
random number device which returns good random numbers,
105
random number device which returns good random numbers,
106
suitable for cryptographic use.
106
suitable for cryptographic use.
107
Note that this particular seeding
107
Note that this particular seeding
Lines 176-182 Link Here
176
.Sh SEE ALSO
176
.Sh SEE ALSO
177
.Xr rand 3 ,
177
.Xr rand 3 ,
178
.Xr srand 3 ,
178
.Xr srand 3 ,
179
.Xr urandom 4
179
.Xr random 4
180
.Sh HISTORY
180
.Sh HISTORY
181
These
181
These
182
functions appeared in 
182
functions appeared in 
(-)random.c (-1 / +1 lines)
Lines 282-288 Link Here
282
 *
282
 *
283
 * Many programs choose the seed value in a totally predictable manner.
283
 * Many programs choose the seed value in a totally predictable manner.
284
 * This often causes problems.  We seed the generator using the much more
284
 * This often causes problems.  We seed the generator using the much more
285
 * secure urandom(4) interface.  Note that this particular seeding
285
 * secure random(4) interface.  Note that this particular seeding
286
 * procedure can generate states which are impossible to reproduce by
286
 * procedure can generate states which are impossible to reproduce by
287
 * calling srandom() with any value, since the succeeding terms in the
287
 * calling srandom() with any value, since the succeeding terms in the
288
 * state buffer are no longer derived from the LC algorithm applied to
288
 * state buffer are no longer derived from the LC algorithm applied to

Return to bug 27858