MCPcopy 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

rangeFunction · 0.85
clsClass · 0.50
joinMethod · 0.45

Tested by

no test coverage detected