Skip to content

Commit 81105af

Browse files
Sycrationmaxcountryman
authored andcommitted
Update rand
1 parent b58463d commit 81105af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tower-sessions-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ futures = { version = "0.3.28", default-features = false, features = [
2222
] }
2323
http = "1.0"
2424
parking_lot = { version = "0.12.1", features = ["serde"] }
25-
rand = "0.8.5"
25+
rand = "0.9"
2626
serde = { version = "1.0.189", features = ["derive", "rc"] }
2727
serde_json = "1.0.107"
2828
thiserror = { workspace = true }

tower-sessions-core/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ impl Default for Id {
880880
fn default() -> Self {
881881
use rand::prelude::*;
882882

883-
Self(rand::thread_rng().gen())
883+
Self(rand::rng().random())
884884
}
885885
}
886886

0 commit comments

Comments
 (0)