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

Function rand_name

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

Source from the content-addressed store, hash-verified

193
194
195def rand_name(length=8, suffix=''):
196 name = binascii.b2a_hex(os.urandom(length)).decode('utf-8')
197 if suffix:
198 if not suffix.startswith('.'):
199 suffix = '.' + suffix
200 name += suffix
201 return name
202
203def cache_video(tensor,
204 save_file=None,

Callers 1

cache_videoFunction · 0.70

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected