this post was submitted on 08 Jan 2025
116 points (94.6% liked)

Programmer Humor

19907 readers
1782 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 11 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 15 points 8 hours ago (1 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] 3 points 2 hours ago

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

[โ€“] [email protected] 21 points 12 hours ago (1 children)
[โ€“] [email protected] 4 points 6 hours ago (1 children)
[โ€“] [email protected] 1 points 2 hours ago

I miss tom scot videos

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

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

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

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

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

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

[โ€“] [email protected] 7 points 16 hours ago

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

[โ€“] [email protected] 1 points 15 hours ago

What happened to bitcoin block hashes?