Simple password generator in Ruby