-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgrade to rand 0.7? #89
Comments
I second this. Currently I am also getting the error when trying to compile. In ed25519.rs on line 974: use rand::thread_rng; I am getting the error "no 'thread_rng' in the root". I have a feeling this is due to the rand crate version. |
This crate depends on |
I can't tell what the problem is without having more information about what versions of all the |
Here is the gist: |
I have also encountered an issue with the latest rand (0.7). It seems that the following example doesn't work with rand 0.7: extern crate rand;
extern crate ed25519_dalek;
use rand::Rng;
use rand::rngs::OsRng;
use ed25519_dalek::Keypair;
use ed25519_dalek::Signature;
let mut csprng: OsRng = OsRng::new().unwrap();
let keypair: Keypair = Keypair::generate(&mut csprng); With the following error:
It seems that the error appears because |
@Dhole seems like there's is no intention to resolve this because of semver reasons. Best temporal solution is to fork or include the crate locally for a while. |
Hi! Unfortunately, |
In case anyone is look at this in the future, it looks like rand 0.7 is used https://github.com/dalek-cryptography/ed25519-dalek/releases/tag/1.0.0-pre.3 |
the rand API changed a bit since 0.6 (there's no
OsRng::new()
anymore). Fortunately nothing breaks if you simply switch the version in Cargo.toml :)The text was updated successfully, but these errors were encountered: