diff --git a/daemon/secrets.c b/daemon/secrets.c index 9794b9106..aac0ed9b3 100644 --- a/daemon/secrets.c +++ b/daemon/secrets.c @@ -147,7 +147,7 @@ static void new_keypair(struct lightningd_state *dstate, struct privkey *privkey, struct pubkey *pubkey) { do { - randombytes_buf(privkey->secret, sizeof(privkey->secret)); + randombytes_buf(privkey->secret, sizeof(privkey->secret)); } while (!pubkey_from_privkey(dstate->secpctx, privkey, pubkey)); } diff --git a/daemon/wallet.c b/daemon/wallet.c index c1dfd1b5a..f56584f20 100644 --- a/daemon/wallet.c +++ b/daemon/wallet.c @@ -25,7 +25,7 @@ static void new_keypair(struct lightningd_state *dstate, struct privkey *privkey, struct pubkey *pubkey) { do { - randombytes_buf(privkey->secret, sizeof(privkey->secret)); + randombytes_buf(privkey->secret, sizeof(privkey->secret)); } while (!pubkey_from_privkey(dstate->secpctx, privkey, pubkey)); }