Re: [PATCH] backports: random: add prandom_bytes macro for pre-3.8 kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/22/2013 01:28 PM, Johannes Berg wrote:
> On Sun, 2013-12-22 at 12:57 +0100, Arend van Spriel wrote:
>> Map prandom_bytes() calls to get_random_bytes() for kernels before
>> 3.8 kernel. This patch is needed by mac80211 rate control code
>> since following:
> 
>> +/* use get_random_bytes() for lack of prandom_bytes() */
>> +#define prandom_bytes(a, b)		get_random_bytes(a, b)
> 
> I don't think this is a good idea, it's a completely different interface
> (get_random_bytes is much higher "quality".)
> 
> We had a different patch for this fairly recently and I thought Luis
> applied it?

Yes a different patch is already in backports:
https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/commit/?id=40ab1bac8c3680d726ee31fbdb590584ae99756f

Hauke
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux