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>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-08-16 19:38:22 +00:00
1 parent b09f19bf24
commit 91b0f0040e
1 file changed
+1 -1
+1 -1
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.