File tree 2 files changed +0
-23
lines changed 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,6 @@ rand = "=0.6.5"
66
66
rand_chacha = " =0.1.1"
67
67
rand_pcg = " =0.1.2"
68
68
69
- # RNG 疑似乱数生成器 (SFMT)
70
- # SIMD-oriented Fast Mersenne Twister (SFMT)のpure Rust実装
71
- # 高速で高品質な疑似乱数を生成。モンテカルロ・シミュレーションに適している
72
- sfmt = " =0.5.0"
73
-
74
69
# 正規表現
75
70
regex = " =1.1.7"
76
71
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ fn main() -> UnitResult {
19
19
// run_im_rc();
20
20
// run_num();
21
21
run_rand_family ( ) ?;
22
- run_sfmt ( ) ?;
23
22
run_regex ( ) ?;
24
23
Ok ( ( ) )
25
24
}
@@ -405,23 +404,6 @@ fn test_rand_family() -> UnitResult {
405
404
run_rand_family ( )
406
405
}
407
406
408
- // sfmt
409
- fn run_sfmt ( ) -> UnitResult {
410
- use rand:: prelude:: * ;
411
- use sfmt:: SFMT ;
412
-
413
- let mut rng = SFMT :: from_rng ( thread_rng ( ) ) ?;
414
- let mean = calc_mean ( & mut rng) ;
415
- println ! ( "SFMT: mean = {:.4}" , mean) ;
416
- assert_eq ! ( ( mean * 10.0 ) . round( ) as u32 , 5 ) ;
417
- Ok ( ( ) )
418
- }
419
-
420
- #[ test]
421
- fn test_sfmt ( ) -> UnitResult {
422
- run_sfmt ( )
423
- }
424
-
425
407
fn calc_mean ( rng : & mut impl rand:: Rng ) -> f64 {
426
408
const ITERATIONS : usize = 10000 ;
427
409
You can’t perform that action at this time.
0 commit comments