Skip to content

ctrlflow: make control flow obfuscation reproducible - #1085

Open
pagran wants to merge 1 commit into
burrowers:masterfrom
pagran:ctrlflow-determinism
Open

ctrlflow: make control flow obfuscation reproducible#1085
pagran wants to merge 1 commit into
burrowers:masterfrom
pagran:ctrlflow-determinism

Conversation

@pagran

@pagran pagran commented Aug 27, 2026

Copy link
Copy Markdown
Member

No description provided.

This comment was marked as outdated.

The same -seed produced different output on each run, breaking
reproducible builds: the flatten hardening drew its key sizes from the
global math/rand rather than the seeded rand, and the trash generator and
the ssa2ast var block ordered their candidates by Go map iteration. Seed
the hardening and sort the rest.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@pagran pagran changed the title internal/ctrlflow: make control flow obfuscation reproducible ctrlflow: make control flow obfuscation reproducible Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants