import string
import random


def create_random_string(chars=string.ascii_letters + string.digits, length=16):
    """Generate a random salt. Default length is 16.
       Originated from mkpasswd in Luma
    """
    return "".join([random.choice(chars) for _ in range(int(length))])