this post was submitted on 24 Nov 2025
389 points (98.7% liked)

Programmer Humor

27601 readers
3208 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] vogi@piefed.social 30 points 1 week ago* (last edited 1 week ago) (4 children)
[–] tburkhol@lemmy.world 73 points 1 week ago (3 children)

crypto - as in cryptography, not cryptocurrency - is just the library he's using to generate the 128-bit random UUID. The snippet is interesting because he matched the original UUID in just over 5 hours. You'd expect to need more than 10^38 guesses to pick the same number again, which, even at 1 guess every microsecond, means something like 10^22 years.

[–] NeatNit@discuss.tchncs.de 36 points 1 week ago

I wanted to downvote you for failing to pick up on the sarcasm, but then you went and did all that math that I was too lazy to do and I ended up upvoting you instead. Damn you!

load more comments (2 replies)
load more comments (2 replies)