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