aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-01 00:50:43 +0800
committerobscuren <geffobscura@gmail.com>2015-02-01 00:50:43 +0800
commit0d97c3ce1322083fb9683a5afec004b2626b620a (patch)
tree3db2f5d5446f451d700bf67ef756d85da0fdda25
parentbb2e847363146be29b8519ec8c25d089cb5841aa (diff)
parent19cff8eccafbb6dfbb8cb9038bfb46d95dfdf60d (diff)
downloadgo-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.tar
go-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.tar.gz
go-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.tar.bz2
go-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.tar.lz
go-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.tar.xz
go-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.tar.zst
go-tangerine-0d97c3ce1322083fb9683a5afec004b2626b620a.zip
Merge branch 'bounty' into develop
-rw-r--r--crypto/secp256k1/secp256_rand.go3
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