this post was submitted on 08 Jan 2025
127 points (95.0% liked)

Programmer Humor

19907 readers
2375 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
 
top 12 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 17 points 17 hours ago (2 children)

I'm worried about relying on remote servers for random numbers, especially for cryptographic purposes. There's no way to verify that you aren't the only person with access to those numbers, and it's fairly difficult even as the sysadmin to ensure that they're logged nowhere.

[โ€“] [email protected] 5 points 8 hours ago

the trick is to combine all your uncertainty sources together. So in the worst case your numbers still have as much entropy as if you did not have the external source. And even if somebody else knows those numbers they do not know the actual numbers you are using. Of course that raises the question: if your other entropy source is good enough that you are happy in your worst case what is the benefit from some extra source of entropy? So i have argued myself into agreeing with you :) crypto is not a good use case for such a service. The wall of lavalamps mentioned above is a better solution.

[โ€“] [email protected] 6 points 12 hours ago

"oops our software had a bug that made it return nonrandom values for a month"

[โ€“] [email protected] 30 points 21 hours ago (1 children)
[โ€“] [email protected] 6 points 15 hours ago (1 children)
[โ€“] [email protected] 2 points 11 hours ago

I miss tom scot videos

[โ€“] [email protected] 9 points 20 hours ago

Excuse me, I believe, you mean qu\ntumr\ndomnumbers. You see, it's the Windows path equivalent of /dev/random.

[โ€“] [email protected] 49 points 1 day ago* (last edited 14 hours ago) (1 children)
int getRandomNumber() {
 return 4; // chosen by a fair dice roll. guaranteed to be random.
}
[โ€“] reinei 7 points 14 hours ago (1 children)

Wasn't it a dice roll that decided that? ๐Ÿค”

[โ€“] [email protected] 6 points 14 hours ago

yeah, i copied the xkcd wrong ๐Ÿคฆโ€โ™‚๏ธ thanks, i'll edit it

[โ€“] [email protected] 7 points 1 day ago

Instead of returning a random number, what if we make the program guess?

[โ€“] [email protected] 1 points 1 day ago

What happened to bitcoin block hashes?