sweep: remove deprecated rand.Seed

This commit is contained in:
yyforyongyu 2024-01-25 02:38:00 +08:00
parent 0110a09595
commit ae43764e31
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -3,7 +3,6 @@ package sweep
import (
"errors"
"fmt"
"math/rand"
"sync"
"sync/atomic"
"time"
@ -1571,8 +1570,3 @@ func (s *UtxoSweeper) sweepPendingInputs(inputs pendingInputs) {
}
}
}
// init initializes the random generator for random input rescheduling.
func init() {
rand.Seed(time.Now().Unix())
}