mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-10 07:38:07 +02:00
Fix rand lint issue
This commit is contained in:
@ -520,7 +520,7 @@ func newAccount(store Store, id int) error {
|
||||
}
|
||||
|
||||
func randomIPv4() net.IP {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
b := make([]byte, 4)
|
||||
for i := range b {
|
||||
b[i] = byte(rand.Intn(256))
|
||||
|
Reference in New Issue
Block a user