method
random_string

random_string(len)
public
Hide source
# File lib/webrick/utils.rb, line 91 def random_string(len) rand_max = RAND_CHARS.size ret = "" len.times{ ret << RAND_CHARS[rand(rand_max)] } ret end