diff options
author | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-12 22:52:10 +0200 |
---|---|---|
committer | Soren Hansen <soren.hansen@rackspace.com> | 2010-10-12 22:52:10 +0200 |
commit | e2b7c99c6266b24dc8b53c47db3587aebd2381fe (patch) | |
tree | 67120b7a4e14cfc244fe3159447366bb7420e220 /nova/utils.py | |
parent | 5be81520196c21aa9b60425bca7bf49935772cd1 (diff) | |
parent | 4f529fe118283164ccb2756f2001805c69c1cc4a (diff) | |
download | nova-e2b7c99c6266b24dc8b53c47db3587aebd2381fe.tar.gz nova-e2b7c99c6266b24dc8b53c47db3587aebd2381fe.tar.xz nova-e2b7c99c6266b24dc8b53c47db3587aebd2381fe.zip |
Merge trunk
Diffstat (limited to 'nova/utils.py')
-rw-r--r-- | nova/utils.py | 4 |
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)] |