diff options
author | obscuren <geffobscura@gmail.com> | 2015-02-01 00:50:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-02-01 00:50:28 +0800 |
commit | 19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d (patch) | |
tree | 8b22baccb1d967fa45b876f3e35eeb583b120322 /crypto/secp256k1 | |
parent | a008c21cf0a0f458ef112b99048b459618dd0cdc (diff) | |
download | go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.tar go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.tar.gz go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.tar.bz2 go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.tar.lz go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.tar.xz go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.tar.zst go-tangerine-19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d.zip |
Fixed n
Diffstat (limited to 'crypto/secp256k1')
-rw-r--r-- | crypto/secp256k1/secp256_rand.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |