Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/stdx/src/rand.rs')
| -rw-r--r-- | crates/stdx/src/rand.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/stdx/src/rand.rs b/crates/stdx/src/rand.rs index b38506caef..64aa57eae0 100644 --- a/crates/stdx/src/rand.rs +++ b/crates/stdx/src/rand.rs @@ -1,8 +1,8 @@ //! We don't use `rand`, as that's too many things for us. //! -//! Currently, we use oorandom instead, but it misses these two utilities. -//! Perhaps we should switch to `fastrand`, or our own small prng, it's not like -//! 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 than xor-shift. pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) { let mut remaining = slice.len() - 1; |