Commit 7f6542c
authored
chore: update rand crate to 0.10.1 (#492)
## What changed
- Updated `rand` to `0.10.1` in both workspace crates
- Regenerated `Cargo.lock` for the new dependency graph
- Migrated code to the `rand 0.10` APIs:
- `thread_rng` -> `rng`
- `distributions` -> `distr`
- `OsRng` -> `SysRng` for local random byte generation
- `fill` -> `try_fill_bytes` with explicit error handling
- Kept RSA encryption compatibility by using `rsa::rand_core::OsRng`
- Restored deterministic `steamguard` test RNG behavior with a `rand
0.8` dev dependency alias (`rand_08`) for the existing StepRng based
test vectors
## Validation
- `cargo test`
- `cargo test -p steamguard`
<!-- PULLFROG_DIVIDER_DO_NOT_REMOVE_PLZ -->
<sup><a href="https://pullfrog.com"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pullfrog.com/logos/frog-white-full-18px.png"><img
src="https://pullfrog.com/logos/frog-green-full-18px.png" width="9px"
height="9px" style="vertical-align: middle; "
alt="Pullfrog"></picture></a> | [View workflow
run](https://github.com/dyc3/steamguard-cli/actions/runs/24400325762/job/71268874475)
| Triggered by [Pullfrog](https://pullfrog.com) | Using `GPT Codex` |
[𝕏](https://x.com/pullfrogai)</sup>
---------
Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>1 parent 1dec603 commit 7f6542c
7 files changed
Lines changed: 356 additions & 76 deletions
File tree
- src
- encryption
- steamguard
- src
0 commit comments