Commit 742f917
committed
fix(security): rand.Read error check in session token creation
dashauth: createSession now panics on crypto/rand failure instead of
silently producing weak tokens. Entropy failure is unrecoverable
for a security system.1 parent f0c1e43 commit 742f917
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
0 commit comments