rust-random / rand

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

Remove automatic (delayed) reseed-on-fork #1379

Closed dhardy closed 8 months ago

dhardy commented 9 months ago

See also #1362 #1377 CC @thomcc

Remove integrated fork protection.

Add ThreadRng::reseed and doc to suggest calling this on fork.

Make ReseedingRng::reseed also clear the random value cache.

dhardy commented 9 months ago

Nightly builds fail due to zerocopy (https://github.com/google/zerocopy/issues/844).

Probably a good idea to leave this PR open a little longer anyway in case anyone has concerns about the removal of automatic reseed-on-fork.

newpavlov commented 9 months ago

cc @tarcieri @briansmith

dhardy commented 8 months ago

No further comments, so I'll merge now.

In case @tarcieri @briansmith or others have concerns, we still have the option to revert before 0.9.