Skip to content

Conversation

@tarcieri
Copy link
Member

Switches every crate except slh-dsa away from a direct rand dependency they don't need. Right now we can't publish any crate that directly depends on rand.

Uses a consistent default strategy for RNGs: SysRng, sourced from the getrandom or as rand::rngs::SysRng in the case of slh-dsa which is actually using rand-specific features.

If this causes too much of a slowdown, we can re-evaluate and go (back) to ChaCha8Rng where needed for testing.

Switches every crate except `slh-dsa` away from a direct `rand`
dependency they don't need. Right now we can't publish any crate that
directly depends on `rand`.

Uses a consistent default strategy for RNGs: `SysRng`, sourced from the
`getrandom` or as `rand::rngs::SysRng` in the case of `slh-dsa` which is
actually using `rand`-specific features.

If this causes too much of a slowdown, we can re-evaluate and go (back)
to `ChaCha8Rng` where needed for testing.
@tarcieri tarcieri merged commit 48b7f61 into master Dec 30, 2025
80 checks passed
@tarcieri tarcieri deleted the rng-cleanup branch December 30, 2025 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants