We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b9940 commit 8e75351Copy full SHA for 8e75351
crates/stdx/src/rand.rs
@@ -1,8 +1,8 @@
1
//! We don't use `rand`, as that's too many things for us.
2
//!
3
-//! Currently, we use oorandom instead, but it misses these two utilities.
4
-//! Perhaps we should switch to `fastrand`, or our own small prng, it's not like
5
-//! we need anything move complicatied that xor-shift.
+//! We currently use oorandom instead, but it's missing these two utilities.
+//! Perhaps we should switch to `fastrand`, or our own small PRNG, it's not like
+//! we need anything more complicated that xor-shift.
6
7
pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
8
let mut remaining = slice.len() - 1;
0 commit comments