r/ProgrammerHumor • • Oct 25 '26

Meme xkcdRelevanceAgain

Post image
14k Upvotes

323 comments sorted by

View all comments

2.7k

u/reallokiscarlet Oct 25 '26

Literally the number xkcd picked long ago

139

u/DDFoster96 Oct 25 '26 • Mindblown Popcorn

I wonder if they vibe coded the certificate creation and the AI didn't realise the xkcd code snippet was satire?

→ More replies (1)

933

u/Specific_Giraffe4440 Oct 25 '26 edited Oct 25 '26

I am familiar with 4 being funny only from order of the stick, is it also an xkcd thing?

Edit:

what I was thinking of https://www.giantitp.com/comics/oots0090.html

The xkcd OOP is referencing https://xkcd.com/221/

Thanks yall!

501

u/--cheese-- Oct 25 '26

99

u/Specific_Giraffe4440 Oct 25 '26

50

u/danielcw189 Oct 25 '26

I thought the 4 in the XKCD comic was random, and it was about Sony picked the same random number (not 4) everytime, instead of picking new ones.

35

u/dekoboko_melancholy Oct 25 '26

The comic came first. The PS3 random number issue didn't literally use 4, the team that discovered it just used it as a joke in their con talk sharing explaining it

→ More replies (4)

94

u/Banes_Addiction Oct 25 '26

By the way, if you want a real life example of this, ask ChatGPT to generate you a random number between 0 and 30.

It's 17. It's always 17

0

u/[deleted] Oct 25 '26

[deleted] — view deleted comment

32

u/Eptalin Oct 25 '26

Most common between 1 and 100 is 37.
73 also ranks highly.
3's and 7's in general are popular.

→ More replies (1)

10

u/macaulaymcgloklin Oct 25 '26

Yup both Claude and ChatGPT says 17 for me. Definitely randmon

→ More replies (37)
→ More replies (1)

161

u/Loko8765 Oct 25 '26 edited Oct 25 '26 • Bravo

Now 4 is funny because it was chosen as a public private key for an intermediate cert by an Indian CA.

It’s supposed to be really hard to factor a 1024-bit number that is the product of two primes, but it turns out to be not too difficult if the 1024 bits happen to start with 1021 zeros.

[Edit: sorry, seems to have been the EC algorithm instead of the RSA algorithm I was describing, but the snark still applies]

32

u/CardOk755 Oct 25 '26

Well, aktually, they used eliptic curves, not RSA, but same result.

15

u/Specific_Giraffe4440 Oct 25 '26

I’ve always loved that this could happen, improbably so but possible the 2 primes u pick are something like 2 and 2

15

u/Puzzleheaded_Study17 Oct 25 '26

It's not just one key, it was 8, all of which were under 256

→ More replies (1)
→ More replies (2)

25

u/adzm Oct 25 '26

4 was the private key, and was 384 bits, and the results are points on an elliptic curve rather than product of primes

→ More replies (1)

18

u/knobiknows Oct 25 '26

Oh man, I haven't heard oots mentioned in a very long time

10

u/darmok42 Oct 25 '26

It's still going! Updates are slow,  as always, but the story is now on the final stretch.

9

u/GoatTnder Oct 25 '26

And has been for three years!

→ More replies (5)
→ More replies (7)
→ More replies (16)