MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / rand_name

Function rand_name

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

Source from the content-addressed store, hash-verified

12
13
14def rand_name(length=8, suffix=''):
15 name = binascii.b2a_hex(os.urandom(length)).decode('utf-8')
16 if suffix:
17 if not suffix.startswith('.'):
18 suffix = '.' + suffix
19 name += suffix
20 return name
21
22
23def cache_video(tensor,

Callers 1

cache_videoFunction · 0.70

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected