108
submitted 1 day ago* (last edited 6 hours ago) by A_norny_mousse@feddit.org to c/linux@programming.dev

That's all. I just found this in a random script. Generates a random UUID every time it's called. I didn't know.

Of course I can also use uuidgen or pipe /dev/(u)random into something to get a random alphanumeric string - but this is built right into the kernel!

In /proc/sys/kernel/random/, there's also boot_id which ~~seems to do the same~~ is static, and some tweakable parameters.

❤️🐧

you are viewing a single comment's thread
view the rest of the comments
[-] Hamartiogonic@sopuli.xyz -2 points 23 hours ago

See also: /dev/null

It’s basically a black hole where you can throw anything.

[-] victorz@lemmy.world 8 points 23 hours ago* (last edited 8 hours ago)
cat /proc/sys/kernel/random/uuid > /dev/null
[-] henfredemars@infosec.pub 3 points 22 hours ago

The information will be evenly distributed upon its surface and some believe one day it will be be radiated back out into the rest of the system.

[-] Hamartiogonic@sopuli.xyz 2 points 20 hours ago

That's a horrifying concept. Better not think about it.

load more comments (15 replies)
load more comments (17 replies)
this post was submitted on 24 May 2025
108 points (97.4% liked)

Linux

7409 readers
404 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS