From b9b78dbe1fc9ffd0536323941f3d24fced91b7ab Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sun, 15 Aug 2004 09:16:25 -0700 Subject: [NET]: Enhanced version of net_random(). 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 and the only user's today are a couple of places that feed in mac address to try make sure address resolution to collide. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- net/core/dev.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'net/core/dev.c') diff --git a/net/core/dev.c b/net/core/dev.c index 547469d2ac6f..293123d8fab4 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3280,6 +3280,8 @@ static int __init net_dev_init(void) BUG_ON(!dev_boot_phase); + net_random_init(); + if (dev_proc_init()) goto out; -- cgit v1.2.3