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
@@ -130,7 +130,7 @@ impl Worker for AutoSnapshotWorker {
async_snapshot_metadata(&self.garage).await?;
let rand_factor = 1f32 + thread_rng().gen::<f32>() / 5f32;
let rand_factor = 1f32 + rand::rng().random::<f32>() / 5f32;
self.next_snapshot = Instant::now() + self.snapshot_interval.mul_f32(rand_factor);
Ok(WorkerState::Idle)