Skip to content

Commit

Permalink
sweep: remove deprecated rand.Seed
Browse files Browse the repository at this point in the history
  • Loading branch information
yyforyongyu committed Jan 29, 2024
1 parent 92ead93 commit 68823ee
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sweep/sweeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package sweep
import (
"errors"
"fmt"
"math/rand"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -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())
}

0 comments on commit 68823ee

Please sign in to comment.