diff options
| author | Stephen Hemminger <shemminger@osdl.org> | 2004-08-15 09:16:25 -0700 |
|---|---|---|
| committer | James Morris <jmorris@redhat.com> | 2004-08-15 09:16:25 -0700 |
| commit | b9b78dbe1fc9ffd0536323941f3d24fced91b7ab (patch) | |
| tree | a491425b4029a4b916dba549f88357e46487cfba /net/core/dev.c | |
| parent | 4ce99e97a0dfe8d1f45c115d681e0fa22c333655 (diff) | |
[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 <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@redhat.com>
Diffstat (limited to 'net/core/dev.c')
| -rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
