diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-16 19:38:22 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-16 19:38:22 +0000 |
commit | 91b0f0040ea4e3766020b938db5bce1ed4cc9b51 (patch) | |
tree | 823d6f4081fbf1475245718ec18bc395a4a4790b | |
parent | b09f19bf24bd4800516e8528716ed6ce82627813 (diff) | |
download | xen-91b0f0040ea4e3766020b938db5bce1ed4cc9b51.tar.gz xen-91b0f0040ea4e3766020b938db5bce1ed4cc9b51.tar.bz2 xen-91b0f0040ea4e3766020b938db5bce1ed4cc9b51.zip |
Really randomise MAC addresses for multi-VIF guests.
Reseeding on every VIF doesn;t work as timeofday doesn't
change quickly enough.
Signed-off-by: Jim Dykman <dykman@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
-rw-r--r-- | tools/python/xen/xm/create.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 72aa2a3f63..1d37f222ed 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -380,7 +380,6 @@ def randomMAC(): @return: MAC address string """ - random.seed() mac = [ 0xaa, 0x00, 0x00, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), @@ -689,6 +688,7 @@ def balloon_out(dom0_min_mem, opts): del xc def main(argv): + random.seed() opts = gopts args = opts.parse(argv) if opts.vals.help: |