Randomness is everywhere. Every atom in the air moves randomly. On subatomic levels, there is even more randomness. Casinos, lotteries, and many games — virtual or not — are based on randomness. Cryptocurrencies or even opening websites involve dealing with “some cryptographic random”, behind the scenes. Developers have to prepare for the ubiquity of randomness, or they will need to face some seriously ugly bugs.

Image for post
Image for post
A “realistic” illustration of a data breach. But seriously, data breaches are totally possible if you are not careful with randomness. Photo by Blogtrepreneur on Flickr, shared without modification under license Attribution 2.0 Generic (CC BY 2.0)

This article mainly focuses on randomness in cryptography. Its goal is not to provide a complete and sound scientific introduction, but rather to provide useful concepts based on abstractions and simplifications, and even concrete tips…

Soma Lucz

Software Engineer, Cyber Security Enthusiast, Specialty Coffee Lover. Not necessarily in this order.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store