Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ new
Method
new
recipes/Python/578135_Markov_EncryptiModule/recipe-578135.py:114–116 ·
view source on GitHub ↗
(cls, key)
Source
from the content-addressed store, hash-verified
112
113
@classmethod
114
def
new(cls, key):
115
base = key.base
116
return
cls(
''
.join(_CHAOS.choice(base)
for
_ in range(key.prefix_len)))
117
118
def
__init__(self, data):
119
self.__test_data(data)
Callers
nothing calls this directly
Calls
3
range
Function · 0.85
cls
Class · 0.50
join
Method · 0.45
Tested by
no test coverage detected