Comment 2 for bug 326392

Revision history for this message
Greg Price (gregprice) wrote : Re: [Bug 326392] Re: invirt-admin create-sysvm leaves files in /etc/xen/

On Fri, Feb 06, 2009 at 11:33:39PM -0000, Evan Broder wrote:
> It's not that hard to generate a MAC address.
>
> Here - have one in an almost one-liner :)
>
> python -c 'import random; print "00:16:3e:%02x:%02x:%02x" %
> tuple(random.randrange(255) for i in range(3))'

This differs from ecprice's longer and more-commented version in
invirt-web/code/xen-ips. I'm all for concise implementations, but
let's use the same correct one in all places. =)

Greg