MCPcopy
hub / github.com/pex-tool/pex / random_bytes

Function random_bytes

testing/__init__.py:102–106  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

100
101
102def random_bytes(length):
103 # type: (int) -> bytes
104 return "".join(map(chr, (random.randint(ord("a"), ord("z")) for _ in range(length)))).encode(
105 "utf-8"
106 )
107
108
109def get_dep_dist_names_from_pex(pex_path, match_prefix=""):

Callers 1

temporary_contentFunction · 0.85

Calls 2

encodeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected