Fix rand lint issue

This commit is contained in:
braginini
2024-04-17 18:07:02 +02:00
parent fd3c1dea8e
commit 93045f3e3a

View File

@ -520,7 +520,7 @@ func newAccount(store Store, id int) error {
} }
func randomIPv4() net.IP { func randomIPv4() net.IP {
rand.Seed(time.Now().UnixNano()) rand.New(rand.NewSource(time.Now().UnixNano()))
b := make([]byte, 4) b := make([]byte, 4)
for i := range b { for i := range b {
b[i] = byte(rand.Intn(256)) b[i] = byte(rand.Intn(256))