mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-15 01:32:56 +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 {
|
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))
|
||||||
|
Reference in New Issue
Block a user