this post was submitted on 16 Jan 2024
103 points (99.0% liked)

Comics

572 readers
1 users here now

A community for sharing comics related to programming

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

Transcript:

[A computer program.]

int getRandomNumber()
{
   return 4; // chosen by fair dice roll.
             // guaranteed to be random.
}

Hover Text:

RFC 1149.5 specifies 4 as the standard IEEE-vetted random number.

you are viewing a single comment's thread
view the rest of the comments
[–] pineapplelover@lemm.ee -1 points 2 years ago (5 children)

Didn't know that. That's kind of funny

[–] BetterDev@programming.dev 1 points 2 years ago (4 children)
[–] pineapplelover@lemm.ee 2 points 2 years ago (3 children)

RFC 1149.5 specifies 4 as the standard IEEE-vetted random number.

I didn't know 4 was the official random number.

[–] BetterDev@programming.dev 1 points 2 years ago (1 children)

It's not. RFC 1149 is an April fools day joke about the protocol "IP Over Avian Carriers" and RFC 1149.5 doesn't exist. He's making a joke here.

[–] pineapplelover@lemm.ee 1 points 2 years ago (1 children)

Ahh I missed that reference. I remember reading the xkcd about the carrier pigeons a while back

[–] BetterDev@programming.dev 2 points 2 years ago

Ah gotcha. Glad I could clarify. For reference, its easy to look up RFCs by just visiting the IEEE website: https://datatracker.ietf.org/doc/html/rfc1149

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