MCPcopy Index your code
hub / github.com/RustPython/RustPython / _generate_nonce

Method _generate_nonce

Lib/test/test_urllib2_localnet.py:104–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 self._realm_name = realm
103
104 def _generate_nonce(self):
105 self._request_num += 1
106 nonce = hashlib.md5(str(self._request_num).encode("ascii")).hexdigest()
107 self._nonces.append(nonce)
108 return nonce
109
110 def _create_auth_dict(self, auth_str):
111 first_space_index = auth_str.find(" ")

Callers 1

Calls 5

strFunction · 0.85
hexdigestMethod · 0.45
md5Method · 0.45
encodeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected