Skip to content

Instantly share code, notes, and snippets.

@iocopocomaioco
Created October 3, 2012 23:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iocopocomaioco/3830624 to your computer and use it in GitHub Desktop.
Save iocopocomaioco/3830624 to your computer and use it in GitHub Desktop.
Generate a UUID
//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