- Upgrade guide: See https://rust-random.github.io/book/update-0.9.html
Changelog:
- Security and unsafe: Policy change, remove fork-protection, use
zerocopy
to replace someunsafe
code. - Dependencies: Bump MSRV to 1.63.0, update to
rand_core
v0.9.0. - Features: Support
std
feature withoutgetrandom
orrand_chacha
, enablesmall_rng
by default, rename features, etc. - API changes: rand_core traits: Add various functions and traits, rename some methods and associated types.
- API changes: Rng trait and top-level fns: Rename and modify some top-level functions and traits.
- API changes: RNGs: Fix seed size, remove parameters.
- API changes: Sequences: Split trait
SliceRandom
, add new methods. - API changes: Distributions: renames: Rename modules, distributions, and traits.
- API changes: Distributions: Relax bounds, remove impls, add new functions and distributions.
- API changes: Weighted distributions: Add modules, traits, and functions.
- API changes: SIMD: Switch to
std::simd
, expand SIMD & docs. - Reproducibility-breaking changes: Make
ReseedingRng::reseed
discard remaining data, changeSmallRng::seed_from_u64
implementation, etc. - Reproducibility-breaking optimisations: Optimize some functions and algorithms.
- Other optimisations: Improve
SmallRng
initialization performance, optimize SIMD widening multiply. - Other: Add
Cargo.lock.msrv
file, reformat withrustfmt
, apply Clippy suggestions, move benchmarks to newbenches
crate and migrate to Criterion. - Documentation: Improve
ThreadRng
related docs, enable experimental feature, better doc of crate features.
- Security and unsafe: Policy change, remove fork-protection, use
- All PRs: List of all pull requests including various fixes, optimizations, and feature additions.
- New Contributors: List of new contributors and their first contributions.
- Full Changelog: 0.8.5...0.9.0
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。