MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / _random_name

Function _random_name

join/LSH/datasketch/storage.py:102–105  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

100
101
102def _random_name(length):
103 # For use with Redis, we return bytes
104 return ''.join(random.choice(string.ascii_lowercase)
105 for _ in range(length)).encode('utf8')
106
107
108class Storage(ABC):

Callers 4

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected