Skip to content

Use crypto/rand for upstream DNS transaction IDs - #3020

Merged
Benjamin Elder (BenTheElder) merged 1 commit into
agent-substrate:mainfrom
bochengchu:dns-txid-crypto-rand
Oct 21, 2026
Merged

Benjamin Elder (BenTheElder) merged 1 commit into
agent-substrate:mainfrom
bochengchu:dns-txid-crypto-rand

Conversation

@bochengchu

Copy link
Copy Markdown
Collaborator

pendingRequests.record picked the starting upstream UDP DNS transaction ID from math/rand/v2. Switch to crypto/rand before taking pendingRequests.mu so in-flight transaction IDs cannot be predicted from PRNG state.

Part of #1816.

Allocate starting upstream UDP DNS transaction IDs from crypto/rand
instead of math/rand/v2 so in-flight transaction IDs cannot be predicted
from PRNG state.
@bowei
Bowei Du (bowei) added this pull request to the merge queue Oct 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, re-queueing

@BenTheElder
Benjamin Elder (BenTheElder) added this pull request to the merge queue Oct 21, 2026
Merged via the queue into agent-substrate:main with commit 5dcea38 Oct 21, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/network area/security Security related issue/pr

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants