Commit ac56833
build(deps): bump rand to 0.10 and migrate RNG API usage
rand 0.8 -> 0.10 in driven-crypto (the only crate with a direct rand
dep). API migration per the rand 0.9/0.10 changelogs:
- `use rand::RngCore` -> `use rand::TryRng` (RngCore is a deprecated
stub in rand_core 0.10; TryRng is the fallible base trait)
- `rand::rngs::OsRng.fill_bytes(buf)` ->
`rand::rngs::SysRng.try_fill_bytes(buf).expect(...)` (OsRng was
renamed SysRng and re-exported from getrandom 0.4; it only exposes
the fallible TryRng surface, and .expect() preserves rand 0.8's
behavior of panicking inside OsRng::fill_bytes on entropy failure)
Semantics preserved: every call site still fills raw byte buffers
straight from the OS CSPRNG (getrandom); no generator, seeding, or
distribution changes. chacha20poly1305 0.10 keeps its internal
rand_core 0.6 pin via aead 0.5, which is fine - driven-crypto never
passes an RNG into an aead API, so the two rand_core majors coexist.
Supersedes #85.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014fLmkjpFkiuky72eLBijL41 parent ef1bf38 commit ac56833
4 files changed
Lines changed: 31 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
| |||
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
81 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
120 | 128 | | |
121 | 129 | | |
122 | 130 | | |
123 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
124 | 134 | | |
125 | 135 | | |
126 | 136 | | |
| |||
0 commit comments