Skip to content

Commit 4ab7a29

Browse files
committed
accounts: use crypto/randentropy in test
1 parent 81dea2d commit 4ab7a29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

accounts/accounts_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
package accounts
22

33
import (
4-
"github.com/ethereum/go-ethereum/crypto"
54
"testing"
5+
6+
"github.com/ethereum/go-ethereum/crypto"
7+
"github.com/ethereum/go-ethereum/crypto/randentropy"
68
)
79

810
func TestAccountManager(t *testing.T) {
911
ks := crypto.NewKeyStorePlain(crypto.DefaultDataDir())
1012
am := NewAccountManager(ks)
1113
pass := "" // not used but required by API
1214
a1, err := am.NewAccount(pass)
13-
toSign := crypto.GetEntropyCSPRNG(32)
15+
toSign := randentropy.GetEntropyCSPRNG(32)
1416
_, err = am.Sign(a1, pass, toSign)
1517
if err != nil {
1618
t.Fatal(err)

0 commit comments

Comments
 (0)