rust-random / rand

A Rust library for random number generation.
https://crates.io/crates/rand
Other
1.67k stars 432 forks source link

impl SeedableRng for StepRng #1496

Closed benjamin-lieser closed 1 month ago

benjamin-lieser commented 2 months ago

Summary

implement SeedableRng for StepRng

Motivation

https://github.com/rust-random/rand/issues/1495

Details

This is not value stable across endianess, not sure if we need/want that here

dhardy commented 2 months ago

Note: StepRng was introduced in #268 where I noted being unsure about SeedableRng. I don't see other discussion of that. I think there shouldn't be an issue with implementing this now.

We should briefly document what this impl does, on the impl itself.

dhardy commented 1 month ago

Closing (along with motivating issue).