Skip to content

Commit

Permalink
disable rand features
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Apr 9, 2024
1 parent 4824400 commit 846eb2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions helix-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ globset = "0.4.14"
[dev-dependencies]
quickcheck = { version = "1", default-features = false }
indoc = "2.0.5"
tempfile = "3.9"
rand = { version = "0.8", default-features = false, features = ["getrandom", "small_rng"] }
3 changes: 2 additions & 1 deletion helix-core/src/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,10 @@ mod test {

fn generate_history(mut inserts: Vec<String>) -> (History, Rope) {
use rand::distributions::{Distribution, Uniform};
use rand::SeedableRng;

let dist = Uniform::new_inclusive(0, 2);
let mut rng = rand::thread_rng();
let mut rng = rand::rngs::SmallRng::from_entropy();

let mut hist = History::default();
let mut doc = Rope::default();
Expand Down

0 comments on commit 846eb2c

Please sign in to comment.