Skip to content

Commit

Permalink
Merge remote-tracking branch 'newpavlov/rand_os' into release/0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
isislovecruft committed Jan 16, 2019
2 parents bab903c + 5dcc1c1 commit 53ba2f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ clear_on_drop = { version = "0.2" }

[dev-dependencies]
criterion = "0.2"
rand = "0.6"
rand_os = "0.1"

[[bench]]
name = "x25519"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ First, Alice uses `EphemeralSecret::new()` and then

```rust
extern crate x25519_dalek;
extern crate rand;
extern crate rand_os;

use x25519_dalek::EphemeralPublic;
use x25519_dalek::EphemeralSecret;
use rand::OsRng;
use rand_os::OsRng;

let mut alice_csprng = OsRng::new().unwrap();
let alice_secret = EphemeralSecret::new(&mut alice_csprng);
Expand Down
4 changes: 2 additions & 2 deletions benches/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
#[macro_use]
extern crate criterion;
extern crate curve25519_dalek;
extern crate rand;
extern crate rand_os;
extern crate x25519_dalek;

use criterion::Criterion;

use curve25519_dalek::montgomery::MontgomeryPoint;

use rand::OsRng;
use rand_os::OsRng;

use x25519_dalek::EphemeralPublic;
use x25519_dalek::EphemeralSecret;
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ extern crate curve25519_dalek;

extern crate rand_core;

#[cfg(test)]
extern crate rand;

mod x25519;

pub use x25519::*;

0 comments on commit 53ba2f3

Please sign in to comment.