Skip to content

Instantly share code, notes, and snippets.

@iocopocomaioco
Created October 3, 2012 23:49
Show Gist options
  • Select an option

  • Save iocopocomaioco/3830624 to your computer and use it in GitHub Desktop.

Select an option

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