mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@27366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c89882197e
commit
75c1cac7f3
442 changed files with 4654 additions and 4654 deletions
|
@ -86,13 +86,13 @@ module WEBrick
|
|||
|
||||
RAND_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
|
||||
"0123456789" +
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
def random_string(len)
|
||||
rand_max = RAND_CHARS.size
|
||||
ret = ""
|
||||
ret = ""
|
||||
len.times{ ret << RAND_CHARS[rand(rand_max)] }
|
||||
ret
|
||||
ret
|
||||
end
|
||||
module_function :random_string
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue