Thread (17 messages) flat view 17 messages, 9 authors, 2004-08-23

Re: [RFC] enhanced version of net_random()

From: David S. Miller <hidden>
Date: 2004-08-16 06:30:21
Also in: lkml

On Fri, 13 Aug 2004 21:28:57 +0200
Andi Kleen [off-list ref] wrote:
On Fri, 13 Aug 2004 11:51:40 -0700
Stephen Hemminger [off-list ref] wrote:
quoted
Here is another alternative, using tansworthe generator.  It uses percpu
state. The one small semantic change is the net_srandom() only affects
the current cpu's seed.  The problem was that having it change all cpu's
seed would mean adding locking 
I would just update the other CPUs without locking. Taking
a random number from a partially updated state shouldn't be a big 
issue.
I personally don't think we need to touch the other cpus
at all, and that having a different current seed on each
cpu might actually be a good thing.

Stephen, I like this one a lot, especially compared to
what we had before.  I'm going to add this to my tree for
the time being.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help