From 19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 31 Jan 2015 17:50:28 +0100 Subject: Fixed n --- crypto/secp256k1/secp256_rand.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto') diff --git a/crypto/secp256k1/secp256_rand.go b/crypto/secp256k1/secp256_rand.go index 027b5f386..bb10025fc 100644 --- a/crypto/secp256k1/secp256_rand.go +++ b/crypto/secp256k1/secp256_rand.go @@ -49,7 +49,8 @@ func init() { _rand = mrand.New(mrand.NewSource(int64(seed1 ^ seed2 ^ seed3))) } -func saltByte(buff []byte) []byte { +func saltByte(n int) []byte { + buff := make([]byte, n) for i := 0; i < len(buff); i++ { var v uint64 = uint64(_rand.Int63()) var b byte -- cgit