simple random password method
1 def random_password(size = 8) 2 charset = %w{ 2 3 4 6 7 8 9 A B C D E F G H J K L M N P Q R T V W X Y Z} 3 (0...size).map{ charset.to_a[rand(charset.size)] }.join 4 end
1 def random_password(size = 8) 2 charset = %w{ 2 3 4 6 7 8 9 A B C D E F G H J K L M N P Q R T V W X Y Z} 3 (0...size).map{ charset.to_a[rand(charset.size)] }.join 4 end