From 68823ee39b3437136037a8dfd0625eb4b4d9cc44 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Thu, 25 Jan 2024 02:38:00 +0800 Subject: [PATCH] sweep: remove deprecated `rand.Seed` --- sweep/sweeper.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sweep/sweeper.go b/sweep/sweeper.go index 72349d1d01..379e296c98 100644 --- a/sweep/sweeper.go +++ b/sweep/sweeper.go @@ -3,7 +3,6 @@ package sweep import ( "errors" "fmt" - "math/rand" "sync" "sync/atomic" "time" @@ -1577,8 +1576,3 @@ func (s *UtxoSweeper) sweepPendingInputs(inputs pendingInputs) { } } } - -// init initializes the random generator for random input rescheduling. -func init() { - rand.Seed(time.Now().Unix()) -}