<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sanitize_random(value):
 """ Random string of same length as the given value. """

    if not value:
        return value
    return ''.join(random.choice(CHARACTERS) for _ in range(len(value)))