aboutsummaryrefslogtreecommitdiffstats
path: root/pow/ar/rnd.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-11-01 01:40:32 +0800
committerFelix Lange <fjl@twurst.com>2014-11-01 01:52:58 +0800
commitf3473312ba90b37b9a4100592a8c4d5d5bf245b7 (patch)
treeefc14c86ce3c9b45bcc09c84dc9fbed79c089cb9 /pow/ar/rnd.go
parent5af4ff985dc43b648bdc96394a3bd96d9658ae0a (diff)
downloadgo-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.gz
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.zst
go-tangerine-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.zip
all: fix rename breakage
Diffstat (limited to 'pow/ar/rnd.go')
-rw-r--r--pow/ar/rnd.go8
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