Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active Apr 1, 2022
Embed
What would you like to do?
Simple script to generate an UUID. / published by https://github.com/dacr/code-examples-manager #06714d2a-1b6f-4f8d-b8ac-b3a48db850f4/15392dcc820b7deb186d5b95818e014d37553bc8
// summary : Simple script to generate an UUID.
// keywords : scala, uuid, @testable
// publish : gist
// authors : David Crosson
// license : Apache2
// id : 06714d2a-1b6f-4f8d-b8ac-b3a48db850f4
// created-on : 2020-05-31T19:54:52Z
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// ---------------------
//> using scala "3.1.1"
// ---------------------
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