1 parent aaadd6b commit c6875c8Copy full SHA for c6875c8
3 files changed
Cargo.toml
@@ -15,7 +15,7 @@ exclude = [
15
16
[dependencies]
17
hex = "^0.4"
18
-rand = "^0.9"
+rand = "^0.10"
19
sha2 = "^0.10"
20
21
[dev-dependencies]
examples/jarm.rs
@@ -15,6 +15,6 @@ fn main() {
};
println!("JARM hash: {jarm_hash}");
- assert_eq!(jarm_hash, "27d3ed3ed0003ed1dc42d43d00041d6183ff1bfae51ebd88d70384363d525c".to_string());
+ assert_eq!(jarm_hash, "27d40d40d00040d1dc42d43d00041d6183ff1bfae51ebd88d70384363d525c".to_string());
println!("Done");
}
src/lib.rs
@@ -1,6 +1,6 @@
1
pub mod error;
2
3
-use rand::Rng;
+use rand::RngExt;
4
use std::str::FromStr;
5
use sha2::{Sha256, Digest};
6
use std::net::{SocketAddr, TcpStream, ToSocketAddrs};
0 commit comments