Searched refs:token_hex (Results 1 – 4 of 4) sorted by relevance
81 for func in (secrets.token_bytes, secrets.token_hex,95 self.assertEqual(len(secrets.token_hex(None)), 2*size)108 s = secrets.token_hex(n)
48 def token_hex(nbytes=None): function
77 .. function:: token_hex([nbytes=None])85 >>> token_hex(16) #doctest:+SKIP
44 name = _SHM_NAME_PREFIX + secrets.token_hex(nbytes)