Home
last modified time | relevance | path

Searched refs:token_hex (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_secrets.py81 for func in (secrets.token_bytes, secrets.token_hex,
95 self.assertEqual(len(secrets.token_hex(None)), 2*size)
105 # Test token_hex.
108 s = secrets.token_hex(n)
/third_party/python/Lib/
H A Dsecrets.py10 'token_bytes', 'token_hex', 'token_urlsafe',
48 def token_hex(nbytes=None): function
55 >>> token_hex(16) #doctest:+SKIP
/third_party/python/Lib/multiprocessing/
H A Dshared_memory.py45 name = _SHM_NAME_PREFIX + secrets.token_hex(nbytes)

Completed in 2 milliseconds