Skip to content

Commit

Permalink
use thread_rng
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-ho committed Jan 9, 2024
1 parent 0ac9098 commit 4a3a226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daft-table/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl Table {
use rand::{distributions::Uniform, rngs::StdRng, Rng, SeedableRng};
let mut rng = match seed {
Some(seed) => StdRng::seed_from_u64(seed),
None => StdRng::from_entropy(),
None => StdRng::from_rng(rand::thread_rng()).unwrap(),
};
let range = Uniform::from(0..self.len() as u64);
let values: Vec<u64> = if with_replacement {
Expand Down

0 comments on commit 4a3a226

Please sign in to comment.