method
allocate_request_id
allocate_request_id(host, port)
public
Hide source
# File lib/resolv.rb, line 572 def self.allocate_request_id(host, port) # :nodoc: id = nil RequestIDMutex.synchronize { h = (RequestID[[host, port]] ||= {}) begin id = rangerand(0x0000..0xffff) end while h[id] h[id] = true } id end