24
19

More than 3 years have passed since last update.

RubyでUUIDを生成する

Last updated at Posted at 2014-03-07
require 'securerandom'
p SecureRandom.uuid #=> 73f57385-7c80-49f2-b636-28b0e7bea67d

参考
http://doc.okkez.net/1.9.3/view/method/SecureRandom/s/uuid

24
19
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
19