File tree 4 files changed +8
-0
lines changed
4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ impl ChaChaRng {
121
121
///
122
122
/// - 2917185654
123
123
/// - 2419978656
124
+ #[ deprecated( since="0.5.0" , note="use the NewRng or SeedableRng trait" ) ]
124
125
pub fn new_unseeded ( ) -> ChaChaRng {
125
126
ChaChaRng :: from_seed ( [ 0 ; SEED_WORDS * 4 ] )
126
127
}
Original file line number Diff line number Diff line change @@ -121,6 +121,9 @@ impl fmt::Debug for IsaacRng {
121
121
impl IsaacRng {
122
122
/// Create an ISAAC random number generator using the default
123
123
/// fixed seed.
124
+ ///
125
+ /// DEPRECATED. `IsaacRng::new_from_u64(0)` will produce identical results.
126
+ #[ deprecated( since="0.5.0" , note="use the NewRng or SeedableRng trait" ) ]
124
127
pub fn new_unseeded ( ) -> IsaacRng {
125
128
Self :: new_from_u64 ( 0 )
126
129
}
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ impl fmt::Debug for Isaac64Rng {
107
107
impl Isaac64Rng {
108
108
/// Create a 64-bit ISAAC random number generator using the
109
109
/// default fixed seed.
110
+ ///
111
+ /// DEPRECATED. `Isaac64Rng::new_from_u64(0)` will produce identical results.
112
+ #[ deprecated( since="0.5.0" , note="use the NewRng or SeedableRng trait" ) ]
110
113
pub fn new_unseeded ( ) -> Isaac64Rng {
111
114
Self :: new_from_u64 ( 0 )
112
115
}
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ impl XorShiftRng {
47
47
/// by this function will yield the same stream of random numbers. It is
48
48
/// highly recommended that this is created through `SeedableRng` instead of
49
49
/// this function
50
+ #[ deprecated( since="0.5.0" , note="use the NewRng or SeedableRng trait" ) ]
50
51
pub fn new_unseeded ( ) -> XorShiftRng {
51
52
XorShiftRng {
52
53
x : w ( 0x193a6754 ) ,
You can’t perform that action at this time.
0 commit comments