From 2eb6ea18b942ae2ac3ed54f09d4dab3032788d46 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 28 May 2026 10:26:53 +0300 Subject: fix(random): remove deprecated rand seeding (hq) --- internal/cli/throttle.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/cli/throttle.go') diff --git a/internal/cli/throttle.go b/internal/cli/throttle.go index 5241782..3b85d10 100644 --- a/internal/cli/throttle.go +++ b/internal/cli/throttle.go @@ -162,8 +162,7 @@ func recordRepoSync(repoName string, st *state.State, throttle bool) { } func randomThrottleDuration() time.Duration { - rng := rand.New(rand.NewSource(time.Now().UnixNano())) - days := throttleMinDays + rng.Intn(throttleMaxDays-throttleMinDays+1) + days := throttleMinDays + rand.Intn(throttleMaxDays-throttleMinDays+1) return time.Duration(days) * 24 * time.Hour } -- cgit v1.2.3