From 52eed920f98c2882080d9e6993413cd3f62d320f Mon Sep 17 00:00:00 2001 From: Steven Soroka Date: Mon, 1 Feb 2021 04:55:49 -0500 Subject: [PATCH] Use MaxUint16 for IDs (#132) --- ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping.go b/ping.go index 6936c94..d311b17 100644 --- a/ping.go +++ b/ping.go @@ -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",