<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def random_hex(length):
 """Generates a random hex string"""

    return escape.to_unicode(binascii.hexlify(os.urandom(length))[length:])