Skip to content

Commit f1d154d

Browse files
committed
Remove sfmt
1 parent 368e805 commit f1d154d

File tree

2 files changed

+0
-23
lines changed

2 files changed

+0
-23
lines changed

Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ rand = "=0.6.5"
6666
rand_chacha = "=0.1.1"
6767
rand_pcg = "=0.1.2"
6868

69-
# RNG 疑似乱数生成器 (SFMT)
70-
# SIMD-oriented Fast Mersenne Twister (SFMT)のpure Rust実装
71-
# 高速で高品質な疑似乱数を生成。モンテカルロ・シミュレーションに適している
72-
sfmt = "=0.5.0"
73-
7469
# 正規表現
7570
regex = "=1.1.7"
7671

src/main.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ fn main() -> UnitResult {
1919
// run_im_rc();
2020
// run_num();
2121
run_rand_family()?;
22-
run_sfmt()?;
2322
run_regex()?;
2423
Ok(())
2524
}
@@ -405,23 +404,6 @@ fn test_rand_family() -> UnitResult {
405404
run_rand_family()
406405
}
407406

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-
425407
fn calc_mean(rng: &mut impl rand::Rng) -> f64 {
426408
const ITERATIONS: usize = 10000;
427409

0 commit comments

Comments
 (0)