ia64/xen-unstable

changeset 6216:3bb1857981e6

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>
author kaf24@firebug.cl.cam.ac.uk
date Tue Aug 16 19:38:22 2005 +0000 (2005-08-16)
parents c7689e1e0768
children 7a92f129e117
files tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xm/create.py	Tue Aug 16 18:12:19 2005 +0000
     1.2 +++ b/tools/python/xen/xm/create.py	Tue Aug 16 19:38:22 2005 +0000
     1.3 @@ -380,7 +380,6 @@ def randomMAC():
     1.4  
     1.5      @return: MAC address string
     1.6      """
     1.7 -    random.seed()
     1.8      mac = [ 0xaa, 0x00, 0x00,
     1.9              random.randint(0x00, 0x7f),
    1.10              random.randint(0x00, 0xff),
    1.11 @@ -689,6 +688,7 @@ def balloon_out(dom0_min_mem, opts):
    1.12      del xc
    1.13  
    1.14  def main(argv):
    1.15 +    random.seed()
    1.16      opts = gopts
    1.17      args = opts.parse(argv)
    1.18      if opts.vals.help: