chore: update dependency rand to 0.9

This commit is contained in:
Gwen Lg
2026-01-28 23:47:38 +01:00
committed by Alex
parent be8e4c9dcf
commit 934c4c31f1
9 changed files with 53 additions and 24 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ pub fn fasthash(data: &[u8]) -> FastHash {
/// Generate a random 32 bytes UUID
pub fn gen_uuid() -> Uuid {
rand::thread_rng().gen::<[u8; 32]>().into()
rand::rng().random::<[u8; 32]>().into()
}
#[cfg(test)]
+1 -1
View File
@@ -59,5 +59,5 @@ where
// ----
pub fn gen_trace_id() -> TraceId {
rand::thread_rng().gen::<[u8; 16]>().into()
rand::rng().random::<[u8; 16]>().into()
}