smol-rs / fastrand

A simple and fast random number generator
Apache License 2.0
409 stars 35 forks source link

feat: Add a fork() method #49

Closed notgull closed 1 year ago

notgull commented 1 year ago

Closes #36 by adding a fork() method that can be used to clone the RNG with a new seed. This strategy is also used in Rng::new() to fork from the global RNG.