Last active
February 3, 2026 20:25
-
-
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/4f29546eb1aa700735f810b2c688bf844271b72a
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // summary : Simple script to generate an UUID. | |
| // keywords : scala, uuid, @testable | |
| // publish : gist | |
| // authors : David Crosson | |
| // license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) | |
| // 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.2" | |
| // --------------------- | |
| 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