Skip to content

Make mnemonic RNG selection explicit - #253

Closed
benthecarman wants to merge 1 commit into
lightningdevkit:mainfrom
benthecarman:os-rng
Closed

Make mnemonic RNG selection explicit#253
benthecarman wants to merge 1 commit into
lightningdevkit:mainfrom
benthecarman:os-rng

Conversation

@benthecarman

Copy link
Copy Markdown
Collaborator

Use direct OS randomness for the server's one-time mnemonic generation and an explicit OsRng in the E2E setup. A thread-local generator is not needed for these infrequent operations.

Use direct OS randomness for the server's one-time mnemonic generation
and an explicit OsRng in the E2E setup. A thread-local generator is not
needed for these infrequent operations.

AI-Assisted: OpenAI Codex
@benthecarman
benthecarman requested a review from tankyleo August 3, 2026 20:22
@ldk-reviews-bot

ldk-reviews-bot commented Aug 3, 2026

Copy link
Copy Markdown

👋 Thanks for assigning @tankyleo as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Ok(NodeEntropy::from_bip39_mnemonic(mnemonic, None))
}

fn generate_entropy_mnemonic() -> io::Result<Mnemonic> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this deserves a fix in ldk-node and bip39 no ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i guess that makes more sense

@benthecarman
benthecarman deleted the os-rng branch August 3, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants