[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080408175353.GA17147@one.firstfloor.org>
Date: Tue, 8 Apr 2008 19:53:53 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Juliusz Chroboczek <Juliusz.Chroboczek@....jussieu.fr>
Cc: Andi Kleen <andi@...stfloor.org>, netdev@...r.kernel.org
Subject: Re: [PATCH] Stochastic Fair Blue queue discipline
On Tue, Apr 08, 2008 at 07:35:36PM +0200, Juliusz Chroboczek wrote:
> > no net_random/srandom32 is per CPU and likely does the wrong thing for you.
>
> Why is that? I'm only using this to initialise a global data
> structure, why should it matter that I use per-cpu state?
Because they're independent and there is no guarantee you always
run on the same CPU and sampling them randomly will not necessarily
give you a good random number sequence.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists