[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    Re: [PATCH] backports: random: add prandom_bytes macro for pre-3.8 kernels
From:       Arend van Spriel <arend () broadcom ! com>
Date:       2013-12-22 17:27:02
Message-ID: 52B720E6.3070809 () broadcom ! com
[Download RAW message or body]

On 12/22/2013 06:15 PM, Hauke Mehrtens wrote:
> 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
> 

I was looking at your github repo, because kernel.org did not work for
3.13 a while ago. Distributed version control can be a curse as well as
a blessing.

Gr. AvS

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic