[PATCH] eliminate modulo bias in OpenBSD's malloc
Currently, there is a modulo bias introduced by using:
i = rand() % bp->free;
Is there a reason not to import arc4random_uniform() which takes care of modulo bias ?
In the mean time, attached is a small patch that reduces the modulo bias.
Trac:
Username: logan