Skip to content

Comments

Replace rand with getrandom and KeysManager entropy in non-test…#800

Open
TheBlueMatt wants to merge 1 commit intolightningdevkit:mainfrom
TheBlueMatt:2026-02-no-rand
Open

Replace rand with getrandom and KeysManager entropy in non-test…#800
TheBlueMatt wants to merge 1 commit intolightningdevkit:mainfrom
TheBlueMatt:2026-02-no-rand

Conversation

@TheBlueMatt
Copy link
Contributor

… code

rand is basically just a way to wrap getrandom with a chacha stream plus a bag of unrelated random utilities. Given we already have a way to wrap getrandom with a chacha stream, there's no point in relying on rand for it, so we simply drop it here.

Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

… code

`rand` is basically just a way to wrap `getrandom` with a chacha
stream plus a bag of unrelated random utilities. Given we already
have a way to wrap `getrandom` with a chacha stream, there's no
point in relying on `rand` for it, so we simply drop it here.

Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ldk-reviews-bot
Copy link

👋 Hi! Please choose at least one reviewer by assigning them on the right bar.
If no reviewers are assigned within 10 minutes, I'll automatically assign one.
Once the first reviewer has submitted a review, a second will be assigned if required.

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.

2 participants