diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-01 08:18:13 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-01 08:18:13 +0800 |
commit | c8438979a9c5c73bf68a132d5fd0325863ab454b (patch) | |
tree | 1792da4ffa92e3a225bd37079c0458ea4b101d23 /pow/ar/rnd.go | |
parent | 141d3caabbfbebbbecac455462a40b6056aa3821 (diff) | |
parent | 394e0f60c20206c7f7c4c76551d11a2b14b23a4d (diff) | |
download | dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.tar dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.tar.gz dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.tar.bz2 dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.tar.lz dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.tar.xz dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.tar.zst dexon-c8438979a9c5c73bf68a132d5fd0325863ab454b.zip |
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
Diffstat (limited to 'pow/ar/rnd.go')
-rw-r--r-- | pow/ar/rnd.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pow/ar/rnd.go b/pow/ar/rnd.go index 7dbd99373..c62f4e062 100644 --- a/pow/ar/rnd.go +++ b/pow/ar/rnd.go @@ -3,7 +3,7 @@ package ar import ( "math/big" - "github.com/ethereum/go-ethereum/ethcrypto" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" ) @@ -21,16 +21,16 @@ func (self ByteNode) Big() *big.Int { func Sha3(v interface{}) *big.Int { if b, ok := v.(*big.Int); ok { - return ethutil.BigD(ethcrypto.Sha3(b.Bytes())) + return ethutil.BigD(crypto.Sha3(b.Bytes())) } else if b, ok := v.([]interface{}); ok { - return ethutil.BigD(ethcrypto.Sha3(ethutil.Encode(b))) + return ethutil.BigD(crypto.Sha3(ethutil.Encode(b))) } else if s, ok := v.([]*big.Int); ok { v := make([]interface{}, len(s)) for i, b := range s { v[i] = b } - return ethutil.BigD(ethcrypto.Sha3(ethutil.Encode(v))) + return ethutil.BigD(crypto.Sha3(ethutil.Encode(v))) } return nil |