Home
last modified time | relevance | path

Searched refs:token_bytes (Results 1 – 6 of 6) sorted by relevance

/third_party/python/Lib/
Dsecrets.py34 def token_bytes(nbytes=None): function
59 return binascii.hexlify(token_bytes(nbytes)).decode('ascii')
71 tok = token_bytes(nbytes)
/third_party/python/Lib/test/
Dtest_secrets.py81 for func in (secrets.token_bytes, secrets.token_hex,
94 self.assertEqual(len(secrets.token_bytes(None)), size)
101 self.assertIsInstance(secrets.token_bytes(n), bytes)
102 self.assertEqual(len(secrets.token_bytes(n)), n)
/third_party/python/Doc/library/
Dsecrets.rst65 .. function:: token_bytes([nbytes=None])
73 >>> token_bytes(16) #doctest:+SKIP
Drandom.rst115 Use :func:`secrets.token_bytes` instead.
/third_party/mindspore/tests/ut/python/utils/
Dtest_serialize.py337 key = secrets.token_bytes(16)
392 key = secrets.token_bytes(16)
Dtest_callback.py258 enc_key=secrets.token_bytes(16),