Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
19
def
random_string():
20
return
''
.join(random.choice(
'0123456789ABCDEF'
)
for
_ in range(10))
21
22
def
set_gen_name(g, b):
23
b.wait()
Callers
2
set_gen_name
Function · 0.85
set_gen_qualname
Function · 0.85
Calls
2
choice
Method · 0.80
join
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…