Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ homepage = "https://github.com/RustAudio/pitch_calc"
edition = "2018"

[dependencies]
num = "0.1.28"
rand = "0.3.12"
num = ">=0.1.28, <1"
rand = ">=0.5, <1"
serde = { optional = true, version = "1.0.*", features = ["derive"] }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/letter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ impl ToPrimitive for Letter {
}
}

impl ::rand::Rand for Letter {
fn rand<R: ::rand::Rng>(rng: &mut R) -> Letter {
impl ::rand::distributions::Distribution<Letter> for ::rand::distributions::Standard {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> Letter {
rng.gen_range(0, 12).to_letter()
}
}
Expand Down