12件ヒット
[1-12件を表示]
(0.098秒)
別のキーワード
ライブラリ
- securerandom (12)
モジュール
- SecureRandom (12)
検索結果
-
SecureRandom
. urlsafe _ base64(n = nil , padding = false) -> String (18225.0) -
ランダムで URL-safe な base64 文字列を生成して返します。
...@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
p SecureRandom.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
p SecureRandom.urlsafe_base64(nil, true) #=> "i0X......Q-7gglIsHGV2_BNPrdQ=="
p SecureRandom.urlsafe_base64(nil, true) #=> "-M8rLhr7JEpJlqFGUMmOxg=="
@see SecureRandom.base64, 3548...