Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
geostyx
· 6y ago · 0 comments
Maybe you want a UUID within a shell script, CI/CD pipeline or orchestration framework which has native support for HTTP, but not UUID :)
Comments
[–]
isp
6y ago
Little known feature on Linux:
cat /proc/sys/kernel/random/uuid
[–]
moviuro
6y ago
Also:
uuid -r
See
https://linux.die.net/man/1/uuid
[–]
war1025
6y ago
What's the -r do? Output as raw bytes? I always just do `uuid -v4`
[–]
moviuro
6y ago
-r is for "random". I've needed it for one of my scripts: if you generate many UUIDs at once on the same machine, there
will
be duplicates.
[–]
p4l4g4
6y ago
Awesome, thanks! I will read up on that! Wonder if it's as stable as using dedicated uuid programs or libraries.