1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-09 19:58:45 -05:00
v2fly/common/net/testing/port.go
2016-01-22 16:25:01 +01:00

11 lines
196 B
Go

package testing
import (
"github.com/v2ray/v2ray-core/common/dice"
v2net "github.com/v2ray/v2ray-core/common/net"
)
func PickPort() v2net.Port {
return v2net.Port(30000 + dice.Roll(10000))
}