MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / get_random_string

Function get_random_string

verl/verl/single_controller/ray/base.py:40–45  ·  view source on GitHub ↗
(length: int)

Source from the content-addressed store, hash-verified

38
39
40def get_random_string(length: int) -> str:
41 import random
42 import string
43
44 letters_digits = string.ascii_letters + string.digits
45 return "".join(random.choice(letters_digits) for _ in range(length))
46
47
48def func_generator(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking):

Callers 4

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected