MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / get_random_string

Function get_random_string

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

Source from the content-addressed store, hash-verified

27
28
29def get_random_string(length: int) -> str:
30 import random
31 import string
32 letters_digits = string.ascii_letters + string.digits
33 return ''.join(random.choice(letters_digits) for _ in range(length))
34
35
36def func_generator(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected