Skip to content

Commit

Permalink
fix: GenerateSecp256k1Key use src as seed
Browse files Browse the repository at this point in the history
  • Loading branch information
tvi authored Nov 6, 2024
1 parent 10045d1 commit 6456703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/crypto/secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6456703

Please sign in to comment.