You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrade rand 0.8 to 0.10 (or replace it with getrandom 0.4) once the RustCrypto stack is migrated #172
rand 0.8 is still here because several dependencies take a rand_core 0.6 RNG. It's the last step in removing rand_core 0.6 and getrandom 0.2 from the tree.
src/signatures/ed25519.rs: OsRng for key generation
src/pqc/slh_dsa.rs: rand::rngs::OsRng
Consider dropping rand entirely. Every use is "fill bytes from the OS RNG", which getrandom::SysRng / getrandom::fill (already a dependency, used in src/asymmetric/cas_rsa.rs) covers, and that would remove a dependency.
Done when cargo tree -i rand_core@0.6 and cargo tree -i getrandom@0.2 find nothing.
Acceptance criteria
cargo build --release --locked and cargo test --release --locked pass on Linux, Windows and macOS.
Key/nonce/salt lengths and formats are unchanged. Nonce generation stays from the OS RNG (see the CASAeadSeal contract).
docs/EXAMPLES.md updated if any public signature changes.
PR title follows Conventional Commits. Don't bump the crate version or edit CHANGELOG.md by hand.
Status (2026-11-27): rand is removed; waiting on #171 to finish.
#187 (sub-issues #179–#182) removed the rand crate: rand 0.8, rand_chacha, ppv-lite86, getrandom 0.2 and wasi 0.11 are gone, and every OS-randomness call now goes through getrandom 0.4.
The remaining done-criterion, no rand_core 0.6 in cargo tree, is blocked: rand_core 0.6 is now pulled in only by slh-dsa 0.0.3 (directly and via signature 2). slh-dsa 0.2.0 is still only a release candidate (0.2.0-rc.5), and we are waiting for the most appropriate stable version rather than shipping an RC. Close this when #171 lands and cargo tree -i rand_core@0.6 finds nothing.
Activity
WingZer0o commentedon Nov 27, 2026
Status (2026-11-27):
randis removed; waiting on #171 to finish.#187 (sub-issues #179–#182) removed the
randcrate:rand0.8,rand_chacha,ppv-lite86,getrandom0.2 andwasi0.11 are gone, and every OS-randomness call now goes throughgetrandom0.4.The remaining done-criterion, no
rand_core0.6 incargo tree, is blocked:rand_core0.6 is now pulled in only byslh-dsa0.0.3 (directly and viasignature2). slh-dsa 0.2.0 is still only a release candidate (0.2.0-rc.5), and we are waiting for the most appropriate stable version rather than shipping an RC. Close this when #171 lands andcargo tree -i rand_core@0.6finds nothing.