mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: update to go 1.20 (#5968)
Co-authored-by: Colin Adler <colin1adler@gmail.com>
This commit is contained in:
@ -24,7 +24,7 @@ import (
|
||||
func randRemoteAddr() string {
|
||||
var b [4]byte
|
||||
// nolint:gosec
|
||||
rand.Read(b[:])
|
||||
_, _ = rand.Read(b[:])
|
||||
// nolint:gosec
|
||||
return fmt.Sprintf("%s:%v", net.IP(b[:]).String(), rand.Int31()%(1<<16))
|
||||
}
|
||||
|
Reference in New Issue
Block a user