this post was submitted on 24 Nov 2025
357 points (99.2% liked)

Programmer Humor

27490 readers
1522 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 29 points 1 day ago* (last edited 22 hours ago) (4 children)
[–] tburkhol@lemmy.world 72 points 1 day 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.

[–] vogi@piefed.social 5 points 21 hours ago* (last edited 20 hours ago) (1 children)

Sorry, I forgot to add the /s.

But thank you for the calculations, it's actually interesting :) I was thinking about that myself, but didn't bother to do the math.

I thought its reminiscent of cryptomining as it also consist of guessing an arbitrary number just for fun.

[–] tburkhol@lemmy.world 4 points 20 hours ago

Internet sarcasm is hard, and lemmy has a very general audience :) I'm always happy when someone gives me an excuse to do the math I was already curious about - it's often not worth it, for just my own curiosity, but even a sarcastic or disingenuous prompt reminds me that there's other casually curious people out there.

load more comments (1 replies)
load more comments (1 replies)