Commit dda6b12
committed
fix(weak-id): replace predictable mt_rand with cryptographically secure random_bytes
mt_rand() is seeded with a predictable value and not suitable for
security-sensitive contexts. random_bytes() uses the OS CSPRNG instead, which
is cryptographically unpredictable.1 parent e8fd506 commit dda6b12
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments