Merge "Reduce chance of name collision for resources."

This commit is contained in:
Jenkins 2013-04-01 17:43:15 +00:00 committed by Gerrit Code Review
commit bb7ce444cc
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ from tempest import exceptions
def rand_name(name='test'):
return name + str(random.randint(1, 999999))
return name + str(random.randint(1, 0x7fffffff))
def rand_int_id(start=0, end=999999):
def rand_int_id(start=0, end=0x7fffffff):
return random.randint(start, end)