From 651dc8481a87788af3f125531cda089bcef735b3 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Wed, 14 Dec 2022 06:38:54 -0800 Subject: [PATCH] network port --- t_netaddr.go | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/t_netaddr.go b/t_netaddr.go index fd11886..fe1d518 100644 --- a/t_netaddr.go +++ b/t_netaddr.go @@ -17,25 +17,7 @@ func (arb T) NetAddr() net.Addr { } } - var port uint16 - { - port = uint16(arb.randomness.Intn(65536)) - - if 0 == arb.randomness.Intn(5) { - port = uint16(arb.randomness.Intn(1024)) - } - - if 0 == arb.randomness.Intn(4) { - port = uint16(arb.randomness.Intn(100)) - } - - if 0 == arb.randomness.Intn(30) { - port = 80 - } - if 0 == arb.randomness.Intn(29) { - port = 79 - } - } + var port uint16 = arb.NetPort() var value string func(){