Remove weak helper randomness#74
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
@coderabbitai review |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR removes the concrete ChangesWeak randomness helper removal
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
✅ Action performedReview finished.
|
Summary
XRandomsblock-derived helper from production sourceIXRandomsand the inline test mock for the legacyRandomizerNXTboundary, which remains non-production-configurableweak-prng=0Closes #73.
Validation
forge test --match-test testNxtRandomizerCannotBeConfiguredForProductionCollections -vvvmake checkpowershell -ExecutionPolicy Bypass -File scripts\check.ps1forge fmt --check smart-contracts\IXRandoms.sol smart-contracts\RandomizerNXT.sol test\StreamRandomizerLifecycle.t.solgit diff --checkrg -n "^#|^##|^###" ops\ROADMAP.md ops\SLITHER_BASELINE.md ops\AUTONOMOUS_RUN.md docs\adr\0005-randomness.md docs\known-blockers.md docs\status.md test\README.md{"arbitrary_send_eth":0,"high":4,"informational":575,"low":63,"medium":28,"optimization":6,"reentrancy_eth":0,"slither_exit":-1,"total":676,"uninitialized_state":0,"weak_prng":0}Slither still exits nonzero because the accepted baseline has remaining non-weak-prng findings.
Summary by CodeRabbit
Documentation
Tests
Removals