refactor: use New/NewSource APIs for rand generation
This commit is contained in:
parent
d5a7ff43c0
commit
a283fbd214
2
acn.go
2
acn.go
|
@ -46,7 +46,7 @@ func turnAcnOn(m *model) tea.Msg {
|
||||||
|
|
||||||
m.acnState = connecting
|
m.acnState = connecting
|
||||||
|
|
||||||
mrand.Seed(int64(time.Now().Nanosecond()))
|
mrand.New(mrand.NewSource(int64(time.Now().Nanosecond())))
|
||||||
port := mrand.Intn(1000) + 9600
|
port := mrand.Intn(1000) + 9600
|
||||||
controlPort := port + 1
|
controlPort := port + 1
|
||||||
|
|
||||||
|
|
Reference in New Issue