File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -461,10 +461,11 @@ pub trait Rng {
461
461
///
462
462
/// This is the only method which allows an RNG to report errors while
463
463
/// generating random data; other methods either handle the error
464
- /// internally or panic. This method is intended to allow error-handling
465
- /// when seeding keys or PRNGs from external (true) RNGs.
464
+ /// internally or panic. This method is
465
+ /// the intended way to use external (true) RNGs, like `OsRng`. Its main
466
+ /// use-cases are to generate keys and to seed (infallible) PRNGs.
466
467
///
467
- /// Other than error handling, this is identical to [`fill`], and
468
+ /// Other than error handling, this method is identical to [`fill`], and
468
469
/// has a default implementation simply wrapping [`fill`].
469
470
///
470
471
/// [`fill`]: trait.Rng.html#method.fill
You can’t perform that action at this time.
0 commit comments