File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,8 @@ fn normal() {
89
89
. fold( core:: f64 :: NEG_INFINITY , |a, & b| a. max( b) )
90
90
) ;
91
91
for ( & d, & e) in diff. iter ( ) . zip ( expected_error. iter ( ) ) {
92
- // Difference larger than 3 standard deviations or cutoff
93
- let tol = ( 3 . * e) . max ( 1e-4 ) ;
92
+ // Difference larger than 4 standard deviations or cutoff
93
+ let tol = ( 4 . * e) . max ( 1e-4 ) ;
94
94
assert ! ( d <= tol, "Difference = {} * tol" , d / tol) ;
95
95
}
96
96
}
@@ -172,8 +172,8 @@ fn skew_normal() {
172
172
. fold( core:: f64 :: NEG_INFINITY , |a, & b| a. max( b) )
173
173
) ;
174
174
for ( & d, & e) in diff. iter ( ) . zip ( expected_error. iter ( ) ) {
175
- // Difference larger than 3 standard deviations or cutoff
176
- let tol = ( 3 . * e) . max ( 1e-4 ) ;
175
+ // Difference larger than 4 standard deviations or cutoff
176
+ let tol = ( 4 . * e) . max ( 1e-4 ) ;
177
177
assert ! ( d <= tol, "Difference = {} * tol" , d / tol) ;
178
178
}
179
179
}
Original file line number Diff line number Diff line change @@ -114,4 +114,9 @@ impl SeedableRng for SmallRng {
114
114
fn from_rng < R : RngCore > ( rng : R ) -> Result < Self , Error > {
115
115
Rng :: from_rng ( rng) . map ( SmallRng )
116
116
}
117
+
118
+ #[ inline( always) ]
119
+ fn seed_from_u64 ( state : u64 ) -> Self {
120
+ SmallRng ( Rng :: seed_from_u64 ( state) )
121
+ }
117
122
}
You can’t perform that action at this time.
0 commit comments