mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-30 16:59:54 +00:00
chore: update dependency rand to 0.9
This commit is contained in:
+1
-1
@@ -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
@@ -59,5 +59,5 @@ where
|
||||
// ----
|
||||
|
||||
pub fn gen_trace_id() -> TraceId {
|
||||
rand::thread_rng().gen::<[u8; 16]>().into()
|
||||
rand::rng().random::<[u8; 16]>().into()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user