MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / generate_random_id

Function generate_random_id

backend/tkhelper/utils/utils.py:21–24  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

19
20
21def generate_random_id(length):
22 first_letter = string.ascii_uppercase + string.ascii_lowercase
23 letters = string.ascii_uppercase + string.ascii_lowercase + string.digits
24 return random.choice(first_letter) + "".join(random.choice(letters) for _ in range(length - 1))
25
26
27def current_timestamp_int_milliseconds():

Callers 15

upload_imageFunction · 0.90
api_upload_fileFunction · 0.90
generate_random_event_idFunction · 0.90
generate_random_idMethod · 0.90
generate_random_idMethod · 0.90
generate_random_idMethod · 0.90
generate_random_idMethod · 0.90
generate_random_idMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected