Releases: Absolucy/nanorand-rs
Releases · Absolucy/nanorand-rs
nanorand v0.7.0
Changelog (from 0.6.1)
- Reworked the API heavily
- The
Rng
trait now uses const generics for output length, rather than an associated type - Added
Rng::fill_bytes
, and reworkedRandomGen
implementations to use it. Rng::reseed
was move into the newSeedableRng
trait.- All RNGs now have a
Debug
implementation
- The
- Completely reworked the C API.
- Added
BufferedRng
, a wrapper around anRng
that 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
RandomRange
will panic with an invalid range.
nanorand 0.6.1
Changelog
- Fixed an unsoundness in
TlsWyrand
allowing for aliased mutable references.
nanorand 0.6.0
This is the big one, folks! Breaking changes, obviously.
Changelog
- Renamed
RNG
toRng
RandomGen
will no longer panic if lower > upper (#24)- Added
RandomGen
support for signed integers (#9) and floats (#20)RandomGen
for float will generate an float in the range of0 <= x <= 1
- Added
RandomRange
support for signed integers (#9) - Fixed
RandomRange
having weird in/exclusivity (#21) ChaCha
now has a const generic of how many rounds it is. This speeds it up slightly.TlsWyRand
is now reference-counted.- Added some unit tests to ensure that
RandomRange
works properly.