Fixed int overflow on 32 bit systems
On 32bit systems `Intn` function gets an overflow. Changed it to explicit int size instead
@@ -113,7 +113,7 @@ type RUDP struct {
func NewRUDP(conn net.PacketConn, logger log.Logger) *RUDP {
t := &RUDP{
conn: conn,
- nextPktID: uint56(generator.Intn(maxUint56 + 1)),
+ nextPktID: uint56(generator.Int63n(maxUint56 + 1)),
readEvents: make(chan *readEventDesc, maxReadEvents),
closedChan: make(chan struct{}),
doneChan: make(chan struct{}),
