On 2022/05/14 06:56, Luke Small wrote:
> If I use arc4random_uniform() repeatedly to create a random distribution of
> say numbers less than 0x1000 or even something weird like 0x1300 will the
> random distribution be better with arc4random_uniform() or with mine?

there's no point to have a choice of different arc4random_uniform_xyz
with different characteristics, how is somebody going to pick the
"right" one?

the bottom of netbsd's version of the arc4random(3) manual says it well:

     One may be tempted to create new APIs to accommodate different security
     models and performance constraints without unpleasant surprises on dif-
     ferent operating systems.  This should not be done lightly, though,
     because there are already too many different choices, and too many oppor-
     tunities for programmers to reach for one and pick the wrong one.

what's the perceived problem you're wanting to solve? and does that
problem actually exist in the first place?

Reply via email to