network port

master
Charles Iliya Krempeaux 2022-12-14 06:38:54 -08:00
parent f58be2f83d
commit 651dc8481a
1 changed files with 1 additions and 19 deletions

View File

@ -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(){