Skip to content

Commit

Permalink
Update rand to 0.8 and rand_core to 0.6
Browse files Browse the repository at this point in the history
This makes better user experience when targeting wasm.
Closes facebook#101
  • Loading branch information
PaulGrandperrin committed Dec 22, 2020
1 parent f5b5391 commit 4c818b0
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 30 deletions.
100 changes: 74 additions & 26 deletions Cargo.lock

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

10 changes: 8 additions & 2 deletions Cargo.toml
Expand Up @@ -26,7 +26,7 @@ generic-bytes = { version = "0.1.0" }
generic-bytes-derive = { version = "0.1.0" }
hkdf = "0.10.0"
hmac = "0.10.1"
rand_core = "0.5.1"
rand_core = { version = "0.6.0", features = ["getrandom"] }
scrypt = { version = "0.5.0", optional = true }
sha2 = "0.9.2"
subtle = { version = "2.3.0", default-features = false }
Expand All @@ -42,10 +42,16 @@ hex = "0.4.2"
lazy_static = "1.4.0"
serde_json = "1.0.60"
proptest = "0.10.1"
rand = "0.7"
rand = "0.8"
rustyline = "7.0.0"

[[bench]]
name = "oprf"
harness = false
required-features = ["bench"]

# TEMPORARY, DO NOT MERGE
[patch.crates-io]
x25519-dalek = { git = "https://github.com/PaulGrandperrin/x25519-dalek.git", branch="patch-1" }
curve25519-dalek = { git = "https://github.com/PaulGrandperrin/curve25519-dalek.git", branch="patch-1" }
proptest = { git = "https://github.com/PaulGrandperrin/proptest.git", branch="master" }
4 changes: 2 additions & 2 deletions src/serialization/tests.rs
Expand Up @@ -273,8 +273,8 @@ fn login_third_message_roundtrip() {
fn client_login_roundtrip() {
let pw = b"hunter2";
let mut rng = OsRng;
let id_u_length: usize = rng.gen_range(0, MAX_ID_LENGTH);
let id_s_length: usize = rng.gen_range(0, MAX_ID_LENGTH);
let id_u_length: usize = rng.gen_range(0..MAX_ID_LENGTH);
let id_s_length: usize = rng.gen_range(0..MAX_ID_LENGTH);
let mut id_u = [0u8; MAX_ID_LENGTH];
rng.fill_bytes(&mut id_u);
let mut id_s = [0u8; MAX_ID_LENGTH];
Expand Down

0 comments on commit 4c818b0

Please sign in to comment.