[PATCH] Remove os_random() and refactor its callers to use os_get_random(...)

Jouni Malinen j at w1.fi
Mon Feb 8 09:25:28 PST 2016


On Mon, Feb 08, 2016 at 04:58:07PM +0000, Nick Lowe wrote:
> Remove os_random() and refactor its callers to use os_get_random(...)

Why? This looks like unnecessary increase in use of more CPU heavy
operation for things that should not need os_get_random(O level of PRNG.
If there are places here that really need a strong PRNG, those should be
clearly identified and addressed one-ny-one. If at the end of such an
exercise there are no remaining caller of os_random(), than function can
be removed in the end of such a patch set.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list