<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_nonce(length=8):
 """Generate pseudorandom number."""

    return ''.join([str(random.SystemRandom().randint(0, 9)) for i in range(length)])