summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2011-03-14 13:32:22 -0500
committerTrey Morris <trey.morris@rackspace.com>2011-03-14 13:32:22 -0500
commit093c8200a102891232e2da166830cd59ee133fc4 (patch)
treef07ed6dac0a7e83fe9bf6adf6dc4b4ea0d3da02d /nova/utils.py
parent18e16ab9f5be77764a810b2d6ac5ae8c5be6bb52 (diff)
downloadnova-093c8200a102891232e2da166830cd59ee133fc4.tar.gz
nova-093c8200a102891232e2da166830cd59ee133fc4.tar.xz
nova-093c8200a102891232e2da166830cd59ee133fc4.zip
committing to share
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 0cf91e0cc..415976f44 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -231,14 +231,6 @@ def generate_uid(topic, size=8):
return '%s-%s' % (topic, ''.join(choices))
-def generate_mac():
- mac = [0x02, 0x16, 0x3e,
- random.randint(0x00, 0x7f),
- random.randint(0x00, 0xff),
- random.randint(0x00, 0xff)]
- return ':'.join(map(lambda x: "%02x" % x, mac))
-
-
def generate_password(length=20):
"""Generate a random sequence of letters and digits
to be used as a password. Note that this is not intended