Commit df57493
committed
Use crypto randomInt for the compare_images tiebreak order
CodeQL flags Math.random as insecure randomness. The tiebreak order
choice isn't security-sensitive, but node:crypto randomInt costs
nothing and clears the alert.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SGdnz8JAsc4p3SyUUY3sAc1 parent 97f9aff commit df57493
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
370 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
371 | 374 | | |
372 | 375 | | |
373 | 376 | | |
| |||
0 commit comments