fix: randomize hardware fingerprints across sessions #74
Reference in New Issue
Block a user
Delete Branch "feature/71-randomize-fingerprints"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
stealthChromiumScriptsandstealthFirefoxScriptsslices withbuildChromiumStealthScripts()andbuildFirefoxStealthScripts()builder functions that accept hardware profile structsmath/rand/v2Parent: Epic #68
Closes: #71
Test plan
go build ./...passesgo vet ./...cleango test ./...— all 14 adapted tests pass with builder functions, plus 7 new tests:TestChromiumHWProfiles_NotEmpty/TestFirefoxHWProfiles_NotEmpty— pool has ≥2 entriesTestBuildChromiumStealthScripts_ProfileValues/TestBuildFirefoxStealthScripts_ProfileValues— known profile values appear in outputTestBuildChromiumStealthScripts_ConnectionJitter— 50 calls with same profile, connection script variesTestChromiumHWProfiles_NoSingleQuotes/TestFirefoxHWProfiles_NoSingleQuotes— guard against JS string breakage🤖 Generated with Claude Code