method
random_string
v1_9_1_378 -
Show latest stable
- Class:
WEBrick::Utils
random_string(len)private
No documentation available.
# File lib/webrick/utils.rb, line 91
def random_string(len)
rand_max = RAND_CHARS.bytesize
ret = ""
len.times{ ret << RAND_CHARS[rand(rand_max)] }
ret
end