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.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/stdx/src/rand.rs b/crates/stdx/src/rand.rs
index 115a073dab..e028990900 100644
--- a/crates/stdx/src/rand.rs
+++ b/crates/stdx/src/rand.rs
@@ -1,8 +1,7 @@
-//! We don't use `rand`, as that's too many things for us.
+//! We don't use `rand` because that is too many things for us.
//!
-//! 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.
+//! `oorandom` is used instead, but it's missing these two utilities.
+//! Switching to `fastrand` or our own small PRNG may be good because only xor-shift is needed.
pub fn shuffle<T>(slice: &mut [T], mut rand_index: impl FnMut(usize) -> usize) {
let mut remaining = slice.len() - 1;