apparentlymart/go-cidr

FeatReq: Generate RandomHost from given CIDR

rustycl0ck opened this issue · 0 comments

Thank you for creating and maintaining this library. It makes life much easier when dealing with IPs.

It would be nice to have a function RandomHost just like the Host, which would return a random IP from the given CIDR range.

func RandomHost(base *net.IPNet) (net.IP, error)