mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
b09f19bf24
commit
91b0f0040e
1 file changed
+1
-1
@@ -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:
|
||||
|
||||