Commit 1ece32a
fix(security): [SEC-24] add error check on crypto/rand.Read in Go SDK
Check rand.Read return value and panic on failure to prevent use of
uninitialized event IDs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c6a60bd commit 1ece32a
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments