Class: Password

Inherits:
Object
  • Object
show all
Defined in:
lib/dew/password.rb

Class Method Summary collapse

Class Method Details

.random(length = 12) ⇒ Object



3
4
5
# File 'lib/dew/password.rb', line 3

def self.random length=12
  (0...length).map{ ('a'..'z').to_a[rand(26)] }.join
end