るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.070秒)
トップページ > クエリ:>[x] > バージョン:2.2.0[x] > クエリ:t[x] > クエリ:add[x] > ライブラリ:securerandom[x]

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. float >
  4. integer >
  5. module >

モジュール

検索結果

SecureRandom.urlsafe_base64(n = nil, padding = false) -> String (907.0)

ランダムで URL-safe な base64 文字列を生成して返します。

...に発生します。

require 'securerandom'
p SecureRandom.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
p SecureRandom.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
p SecureRandom.urlsafe_base64(nil, true) #=> "i0XQ-7gglIsHGV2_BNPrdQ=="
p SecureRandom.urlsafe_base64(nil, true) #=> "-M8...