MCPcopy
hub / github.com/MeiGen-AI/InfiniteTalk / rand_name

Function rand_name

wan/utils/utils.py:21–27  ·  view source on GitHub ↗
(length=8, suffix='')

Source from the content-addressed store, hash-verified

19
20
21def rand_name(length=8, suffix=''):
22 name = binascii.b2a_hex(os.urandom(length)).decode('utf-8')
23 if suffix:
24 if not suffix.startswith('.'):
25 suffix = '.' + suffix
26 name += suffix
27 return name
28
29
30

Callers 1

cache_videoFunction · 0.70

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected