From 82535887827bb9f56fd86bac11b86387e4758c50 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 3 Jul 2014 15:03:29 -0400 Subject: [PATCH] There is an upstream accepted solution to this Revert "When (re)starting a couple of virtual machines (about 10) on the same host" This reverts commit cca49ac01f1a5a6bdc67ec55d8d3d83bd16d818d. --- src/core/device.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/core/device.c b/src/core/device.c index ba7d26c2..330f95c5 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -20,15 +20,11 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include -#include -#include #include #include #include #include #include -#include -#include /** * @file @@ -82,9 +78,6 @@ static void rootdev_remove ( struct root_device *rootdev ) { static void probe_devices ( void ) { struct root_device *rootdev; int rc; - struct net_device *netdev; - unsigned int seed; - unsigned int ll_addr; for_each_table_entry ( rootdev, ROOT_DEVICES ) { list_add ( &rootdev->dev.siblings, &devices ); @@ -92,20 +85,6 @@ static void probe_devices ( void ) { if ( ( rc = rootdev_probe ( rootdev ) ) != 0 ) list_del ( &rootdev->dev.siblings ); } - - /* Seed the pseudo-random number generator. Combine the current - * timer ticks and the least significant bits of the hardware - * address(es) to get a high degree of randomness for the seed. - */ - seed = (unsigned int)currticks(); - for_each_netdev ( netdev ) { - memcpy ( &ll_addr, ( netdev->ll_addr + netdev->ll_protocol->ll_addr_len - - sizeof ( ll_addr ) ), sizeof ( ll_addr ) ); - ll_addr = ntohl ( ll_addr ); - seed <<= 1; - seed ^= ll_addr; - } - srand ( seed ); } /**