Releases: Absolucy/nanorand-rs
Releases · Absolucy/nanorand-rs
nanorand v0.8.0
What's Changed
- Fix lower bound for signed
generate_rangefunction by @smvilar in #38 - Add OpenBSD support by @n1000 in #40
- Implement Fisher-Yates shuffle by @jklott in #42
- Fix SmallCrush by @jklott in #44
- Add FreeBSD support. by @MikaelUrankar in #46
- fix: underlying issue of generate_range of signed integers being off by 1 by @StT191 in #48
- feat: add chacha counter initialization by @xpe in #51
- Fix signature of RtlGenRandom and update entropy correspondingly by @cakarsubasi in #53
- Update getrandom to 0.3 by @robert3005 in #54
New Contributors
- @smvilar made their first contribution in #38
- @n1000 made their first contribution in #40
- @jklott made their first contribution in #42
- @MikaelUrankar made their first contribution in #46
- @StT191 made their first contribution in #48
- @xpe made their first contribution in #51
- @cakarsubasi made their first contribution in #53
- @robert3005 made their first contribution in #54
Full Changelog: 0.7.0...0.8.0
nanorand v0.7.0
Changelog (from 0.6.1)
- Reworked the API heavily
- The
Rngtrait now uses const generics for output length, rather than an associated type - Added
Rng::fill_bytes, and reworkedRandomGenimplementations to use it. Rng::reseedwas move into the newSeedableRngtrait.- All RNGs now have a
Debugimplementation
- The
- Completely reworked the C API.
- Added
BufferedRng, a wrapper around anRngthat buffers output, and will use buffered output rather than wasting perfectly good random bytes. - Set MSRV at Rust 1.56.0
- Rust 2021 is used.
- Removed nanorand-py (not like anyone used it anyways)
- Fixed signed integer generation!
- Clarified in the docs that
RandomRangewill panic with an invalid range.
nanorand 0.6.1
Changelog
- Fixed an unsoundness in
TlsWyrandallowing for aliased mutable references.
nanorand 0.6.0
This is the big one, folks! Breaking changes, obviously.
Changelog
- Renamed
RNGtoRng RandomGenwill no longer panic if lower > upper (#24)- Added
RandomGensupport for signed integers (#9) and floats (#20)RandomGenfor float will generate an float in the range of0 <= x <= 1
- Added
RandomRangesupport for signed integers (#9) - Fixed
RandomRangehaving weird in/exclusivity (#21) ChaChanow has a const generic of how many rounds it is. This speeds it up slightly.TlsWyRandis now reference-counted.- Added some unit tests to ensure that
RandomRangeworks properly.