Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. require 'securerandom'
  2. puts SecureRandom.uuid
  3. # OR
  4. # direct from command line: jruby -e "require 'securerandom' ; puts SecureRandom.uuid"
  5. # IRB
  6. # irb(main):001:0> require 'securerandom'
  7. # true
  8. # irb(main):002:0> SecureRandom.uuid
  9. # "8af55604-db60-4347-bb0a-1e13ac058685"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement