diff options
author | Felix Lange <fjl@twurst.com> | 2015-02-20 18:36:50 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-02-20 18:40:58 +0800 |
commit | 4ab7a290cdc6495a7ebcea9384cdc6622f2fd000 (patch) | |
tree | 2f498d5d662fe541881e830adbf7778ce47bc515 | |
parent | 81dea2d8e796b60ca9325bd2a3e502b71e25e6cc (diff) | |
download | dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.tar dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.tar.gz dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.tar.bz2 dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.tar.lz dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.tar.xz dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.tar.zst dexon-4ab7a290cdc6495a7ebcea9384cdc6622f2fd000.zip |
accounts: use crypto/randentropy in test
-rw-r--r-- | accounts/accounts_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index da9406ebe..30e8c6285 100644 --- a/accounts/accounts_test.go +++ b/accounts/accounts_test.go @@ -1,8 +1,10 @@ package accounts import ( - "github.com/ethereum/go-ethereum/crypto" "testing" + + "github.com/ethereum/go-ethereum/crypto" + "github.com/ethereum/go-ethereum/crypto/randentropy" ) func TestAccountManager(t *testing.T) { @@ -10,7 +12,7 @@ func TestAccountManager(t *testing.T) { am := NewAccountManager(ks) pass := "" // not used but required by API a1, err := am.NewAccount(pass) - toSign := crypto.GetEntropyCSPRNG(32) + toSign := randentropy.GetEntropyCSPRNG(32) _, err = am.Sign(a1, pass, toSign) if err != nil { t.Fatal(err) |