Skip to content

Commit c6875c8

Browse files
committed
GH-27 # Update rand library
1 parent aaadd6b commit c6875c8

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ exclude = [
1515

1616
[dependencies]
1717
hex = "^0.4"
18-
rand = "^0.9"
18+
rand = "^0.10"
1919
sha2 = "^0.10"
2020

2121
[dev-dependencies]

examples/jarm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ fn main() {
1515
};
1616

1717
println!("JARM hash: {jarm_hash}");
18-
assert_eq!(jarm_hash, "27d3ed3ed0003ed1dc42d43d00041d6183ff1bfae51ebd88d70384363d525c".to_string());
18+
assert_eq!(jarm_hash, "27d40d40d00040d1dc42d43d00041d6183ff1bfae51ebd88d70384363d525c".to_string());
1919
println!("Done");
2020
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub mod error;
22

3-
use rand::Rng;
3+
use rand::RngExt;
44
use std::str::FromStr;
55
use sha2::{Sha256, Digest};
66
use std::net::{SocketAddr, TcpStream, ToSocketAddrs};

0 commit comments

Comments
 (0)