Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 20, 2024 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/87c9636a6d25787d7c274b036d2a8aad to your computer and use it in GitHub Desktop.
Save dacr/87c9636a6d25787d7c274b036d2a8aad to your computer and use it in GitHub Desktop.
Simple script to generate an UUID. / published by https://github.com/dacr/code-examples-manager #06714d2a-1b6f-4f8d-b8ac-b3a48db850f4/5d81c5dba541ef018086f50e0e8ebe20883ee707
// summary : Simple script to generate an UUID.
// keywords : scala, uuid, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-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.4.0"
// ---------------------
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