Skip to content

Commit

Permalink
sort: remove old commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Jan 8, 2024
1 parent fcd2746 commit f49b89b
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/cmd/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,24 +188,6 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
SliceRandom::shuffle(&mut *all, &mut rng);
},
}

// // we don't need cryptographically strong RNGs for this
// // add DevSkim lint ignores to suppress warning
// if let Some(val) = seed {
// let mut rng = StdRng::seed_from_u64(val); //DevSkim: ignore DS148264
// SliceRandom::shuffle(&mut *all, &mut rng); //DevSkim: ignore DS148264
// } else {
// let mut rng = ::rand::thread_rng();
// SliceRandom::shuffle(&mut *all, &mut rng); //DevSkim: ignore DS148264
// }
// },
// // --random --faster stable sort
// (_, _, true, true) => {
// // faster random sorts using Wyrand
// if let Some(val) = seed {
// fastrand::seed(val); //DevSkim: ignore DS148264
// }
// fastrand::shuffle(&mut all); //DevSkim: ignore DS148264
},

// default stable parallel sort
Expand Down

0 comments on commit f49b89b

Please sign in to comment.