Skip to content

M1: expand stochastic substring and seed-call vocabularies#24

Open
upkk1109 wants to merge 2 commits into
pctablet505:mainfrom
upkk1109:main
Open

M1: expand stochastic substring and seed-call vocabularies#24
upkk1109 wants to merge 2 commits into
pctablet505:mainfrom
upkk1109:main

Conversation

@upkk1109

@upkk1109 upkk1109 commented Jul 4, 2026

Copy link
Copy Markdown

Problem

_STOCHASTIC_SUBSTRINGS did not cover torch.randn, torch.rand.
_SEED_CALL_NAMES did not recognize random.seed() as a seed call.

Changes

  1. Added "rand" to _STOCHASTIC_SUBSTRINGS
  2. Added "seed" to _SEED_CALL_NAMES
  3. Narrowed matching to function-name only to avoid false positives like "brands.total"

Tests Added

  • TP: torch.randn/rand detected
  • FP guard: Generator().manual_seed() → clean
  • FP guard: random.seed() → clean
  • FP guard: brands.total → clean

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.

1 participant