Skip to content

Commit

Permalink
disable rand features
Browse files Browse the repository at this point in the history
  • Loading branch information
kirawi committed Jan 5, 2024
1 parent 65492ac commit 15cef9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
18 changes: 0 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion helix-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ parking_lot = "0.12"
[dev-dependencies]
quickcheck = { version = "1", default-features = false }
indoc = "2.0.4"
rand = "0.8"
rand = { version = "0.8", default-features = false, features = ["getrandom", "small_rng"] }
tempfile = "3.9"
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 15cef9d

Please sign in to comment.