projects
/
chef.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f8c6674da93537a3975cad0ab92cdfed5fb0a4ef
[chef.git]
/
cookbooks
/
tools
/
libraries
/
random_password.rb
1
class Chef
2
class Recipe
3
def random_password(length)
4
length.times.collect do
5
"!\#$%&()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~"[rand(91)].chr
6
end.join
7
end
8
end
9
end