2009-06-16 ランダムな英数文字列の生成 ruby require 'openssl' [OpenSSL::Random.random_bytes(8)].pack('m').gsub(%r![+/=]!) { rand(10) }.strip