moto/moto/apigateway/utils.py
2016-03-01 18:50:06 -05:00

10 lines
213 B
Python

from __future__ import unicode_literals
import six
import random
def create_id():
size = 10
chars = list(range(10)) + ['A-Z']
return ''.join(six.text_type(random.choice(chars)) for x in range(size))