1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/common/net/testing/port.go
2016-01-25 10:47:22 +00:00

11 lines
195 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(5000))
}