diff --git a/core/crypto/secp256k1.go b/core/crypto/secp256k1.go index 99e7464bc5..71067a336f 100644 --- a/core/crypto/secp256k1.go +++ b/core/crypto/secp256k1.go @@ -20,7 +20,7 @@ type Secp256k1PublicKey secp256k1.PublicKey // GenerateSecp256k1Key generates a new Secp256k1 private and public key pair func GenerateSecp256k1Key(src io.Reader) (PrivKey, PubKey, error) { - privk, err := secp256k1.GeneratePrivateKey() + privk, err := secp256k1.GeneratePrivateKeyFromRand(src) if err != nil { return nil, nil, err }