From: Sergey Matveev Date: Thu, 9 Jul 2015 08:10:47 +0000 (+0300) Subject: Unnecessary reversing of random bytes X-Git-Url: http://www.git.cypherpunks.ru/?p=pyssss.git;a=commitdiff_plain;h=a0006c1a5a90f62fc804032c573e172a6c243598 Unnecessary reversing of random bytes --- diff --git a/ssss.py b/ssss.py index 0abe823..170e44e 100644 --- a/ssss.py +++ b/ssss.py @@ -93,7 +93,7 @@ def split(secret, n, t): if n < 0 or t < 0 or n < t or not secret: raise ValueError("Invalid parameters specified") for i in xrange(1, t): - coef.append(bytes2long(urandom(SECRET_LEN)[::-1])) + coef.append(bytes2long(urandom(SECRET_LEN))) out = [] for i in xrange(1, n + 1): out.append((i, long2bytes(_horner(t, i, coef))[::-1]))