refactor: use New/NewSource APIs for rand generation

This commit is contained in:
decentral1se 2023-10-01 10:46:11 +02:00
parent d5a7ff43c0
commit a283fbd214
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 1 additions and 1 deletions

2
acn.go
View File

@ -46,7 +46,7 @@ func turnAcnOn(m *model) tea.Msg {
m.acnState = connecting
mrand.Seed(int64(time.Now().Nanosecond()))
mrand.New(mrand.NewSource(int64(time.Now().Nanosecond())))
port := mrand.Intn(1000) + 9600
controlPort := port + 1