News for hackers. Stuff that matters.
Re:The definitive guide to “modulo bias” and how to avoid it... by xxpor on Thursday September 15, 2022 @04:46PM (#32858216)
There's another reason why (mathematically related) to use a power of 2 as well: it makes the modulo a simple and fast mask, instead of a slow division.

There are no comments on this comment yet.