They Generated 0-256 Instead of a 256-bit Random Number: A Hilarious Bug

Syntetisaattori · x · 2026-10-23

X user Austen spotted an absurd bug: instead of generating a random 256-bit integer, an implementation generated a plain random number between 0 and 256 — hence results like 4, 66, 155, 156, 230 and 237. The quoted post guesses someone misread "256 bit" as the range "0-256". A rookie mistake that would be disastrous in any cryptographic context.

Related event: Developer Mistakes 256-bit Random Number for 0-256 Range, Amusing AI Community(2 posts)→

Original post →

More from Fun

Fun channel →