Skip to content

Instantly share code, notes, and snippets.

@dacr

dacr/uuid-generator.sc

Last active Oct 11, 2020
Embed
What would you like to do?
Simple script to generate an UUID. #06714d2a-1b6f-4f8d-b8ac-b3a48db850f4/a363136d4e29fbe03893ef78208522f33055abbd
#!/usr/bin/env amm
// summary : Simple script to generate an UUID.
// keywords : scala, uuid, @testable
// publish : gist
// authors : David Crosson
// license : Apache2
// id : 06714d2a-1b6f-4f8d-b8ac-b3a48db850f4
// execution : scala ammonite script (http://ammonite.io/) - run as follow 'amm scriptname.sc'
val uuid = java.util.UUID.randomUUID()
println(uuid.toString)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment