Commit c626be7
fix: prevent flaky "throws on tampered ciphertext" test
The test replaced base64 char at position 30 with 'X', but if the
random nonce already produced 'X' at that position, the string was
unchanged and decrypt succeeded (~1.6% flake rate). Now picks a
replacement character guaranteed to differ from the original.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9e87daa commit c626be7
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
0 commit comments