MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / random_string

Function random_string

questions/utils.py:24–26  ·  view source on GitHub ↗

Generate random string

(size=6, chars=string.ascii_letters + string.digits)

Source from the content-addressed store, hash-verified

22
23
24def random_string(size=6, chars=string.ascii_letters + string.digits):
25 """Generate random string"""
26 return "".join(random.choice(chars) for _ in range(size))
27
28
29def get_env_var(name, fallback_env_var=None, default=None):

Callers 6

create_user_legacyFunction · 0.90
api_loginFunction · 0.90
api_signupFunction · 0.90
map_to_openai_responseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected