Use MaxUint16 for IDs (#132)

This commit is contained in:
Steven Soroka 2021-02-01 04:55:49 -05:00 committed by GitHub
parent 30a8f08ad2
commit 52eed920f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ func New(addr string) *Pinger {
addr: addr,
done: make(chan bool),
id: r.Intn(math.MaxInt16),
id: r.Intn(math.MaxUint16),
ipaddr: nil,
ipv4: false,
network: "ip",