From ce6570ddcce22636be33e973525691b86e9e4ef0 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Wed, 5 Feb 2020 20:56:57 -0800 Subject: [PATCH] NewCipher() -> New() Signed-off-by: Russ Magee --- cryptmt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptmt.go b/cryptmt.go index 9174a3a..6888667 100644 --- a/cryptmt.go +++ b/cryptmt.go @@ -26,9 +26,9 @@ func (c *Cipher) yield() (r byte) { return } -// NewCipher creates and returns a Cipher. The key argument should be the +// New creates and returns a Cipher. The key argument should be the // CryptMT key, 64 bytes. -func NewCipher(key []byte) (c *Cipher) { +func New(key []byte) (c *Cipher) { c = &Cipher{m: mtwist.New()} c.m.SeedFullState(key) c.accum = 1