Created
June 15, 2012 12:09
-
-
Save alisterscott/2936163 to your computer and use it in GitHub Desktop.
An example of how to use UUIDs in ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'securerandom' | |
puts SecureRandom.uuid | |
# ffe71bd2-2650-4135-b366-f8da08b4b708 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment