るりまサーチ

最速Rubyリファレンスマニュアル検索!
8件ヒット [1-8件を表示] (0.016秒)

別のキーワード

  1. cookie secure=
  2. cookie secure
  3. fileutils remove_entry_secure
  4. cgi secure
  5. cgi secure=

ライブラリ

モジュール

検索結果

SecureRandom.alphanumeric(n = nil) -> String (21114.0)

ランダムな英数字を生成して返します。

...n A-Z, a-z, 0-9 からなる文字列が返されます。

@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。

//emlist[][ruby]{
require 'securerandom'
p SecureRandom.alphanumeric #=> "2BuBuLf3WfSKyQbR"
p SecureRandom.alphanumeric(10) #=> "i6K93NdqiH"
//}...