Created
October 3, 2012 23:49
-
-
Save iocopocomaioco/3830624 to your computer and use it in GitHub Desktop.
Generate a UUID
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
//method 1 | |
import java.util.UUID | |
uuid = UUID.randomUUID() | |
//method 2 | |
import static java.util.UUID.randomUUID | |
uuid = randomUUID() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment