るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.008秒)
トップページ > クエリ:secure[x] > クエリ:uuid[x] > バージョン:2.6.0[x]

別のキーワード

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

ライブラリ

モジュール

検索結果

SecureRandom.uuid -> String (63424.0)

バージョン 4 の UUID (Universally Unique IDentifier) を生成して返します。

バージョン 4 の UUID (Universally Unique IDentifier) を生成して返します。

version 4 の UUID は全くランダムです (バージョンを除いて)。
この UUID は MAC アドレスや時刻などのような意味のある情報を含みません。

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

require 'securerandom'
p SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
p SecureRan...