MCPcopy Index your code
hub / github.com/python/cpython / random_string

Function random_string

Lib/test/test_free_threading/test_generators.py:19–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 time.sleep(delay_us * 1e-6)
18
19def random_string():
20 return ''.join(random.choice('0123456789ABCDEF') for _ in range(10))
21
22def set_gen_name(g, b):
23 b.wait()

Callers 2

set_gen_nameFunction · 0.85
set_gen_qualnameFunction · 0.85

Calls 2

choiceMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…