public Method

Utils.random_string(len)

There's no documentation for this item.

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.