Hacker News new | ask | show | jobs
by hannob 53 days ago
The blog post doesn't mention the term, but what it describes is commonly known as a "modulo bias" in cryptography.

See also: https://romailler.ch/2020/07/28/crypto-modulo_bias_guide/

1 comments

OpenBSD has arc4random_uniform() avoiding "modulo bias".

https://man.openbsd.org/arc4random.3#arc4random_uniform