import string
import random


def random_hexadecimal(length=16):
    """ Generates a random hexadecimal string.

    :param length: Lengtht of the generated string.
    """
    hexdigits = string.hexdigits
    return ''.join(random.choice(hexdigits) for _ in range(length))