7件ヒット
[1-7件を表示]
(0.069秒)
モジュール
- SecureRandom (7)
検索結果
-
SecureRandom
. alphanumeric(n = nil) -> String (6102.0) -
ランダムな英数字を生成して返します。
...n A-Z, a-z, 0-9 からなる文字列が返されます。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
//emlist[][ruby]{
require 'securerandom'
p SecureRandom.alphanumeric #=> "2BuBuLf3WfSKyQbR"
p SecureRandom.alphanumeric(10) #=> "i6K93NdqiH"
//}...