diff --git a/src/lib.rs b/src/lib.rs index fa1da43a3..314ebb93a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -354,6 +354,10 @@ pub mod tests { .collect() } + pub fn sample(n: u32, ratio: f64) -> Vec { + sample_with_seed(n, ratio, 4) + } + #[test] #[cfg(not(feature = "lz4"))] fn test_version_string() {