method
bind_random_port

bind_random_port(udpsock)
public
Hide source
# File lib/resolv.rb, line 579 def self.bind_random_port(udpsock) # :nodoc: begin port = rangerand(1024..65535) udpsock.bind("", port) rescue Errno::EADDRINUSE retry end end