code: def generate_nonce():
          
          nonce = ''.join([str(randint(0, 9)) for i in range(8)])
          return HMAC(
              nonce.encode(),
              "secret".encode(),
              sha1
          ).hexdigest()
docs: Generate nonce number