summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorSoren Hansen <soren.hansen@rackspace.com>2010-10-12 22:18:29 +0200
committerSoren Hansen <soren.hansen@rackspace.com>2010-10-12 22:18:29 +0200
commit84ec303828095fc105b287b2858021604cfcea32 (patch)
tree42cdf8d374ca917854fd279c3f74ab55a91c6e08 /nova/utils.py
parente0dff8694ed11f03760bf4dc251fccc422035acf (diff)
parent4f529fe118283164ccb2756f2001805c69c1cc4a (diff)
downloadnova-84ec303828095fc105b287b2858021604cfcea32.tar.gz
nova-84ec303828095fc105b287b2858021604cfcea32.tar.xz
nova-84ec303828095fc105b287b2858021604cfcea32.zip
Merge trunk (that's 10 times now, count 'em\!)
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/utils.py b/nova/utils.py
index b1699bda8..12afd388f 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -128,9 +128,7 @@ def runthis(prompt, cmd, check_exit_code = True):
def generate_uid(topic, size=8):
if topic == "i":
# Instances have integer internal ids.
- #TODO(gundlach): We should make this more than 32 bits, but we need to
- #figure out how to make the DB happy with 64 bit integers.
- return random.randint(0, 2**32-1)
+ return random.randint(0, 2**64-1)
else:
characters = '01234567890abcdefghijklmnopqrstuvwxyz'
choices = [random.choice(characters) for x in xrange(size)]