Skip to content

Releases: Absolucy/nanorand-rs

nanorand v0.7.0

09 Mar 00:47
f7c6796
Compare
Choose a tag to compare

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 reworked RandomGen implementations to use it.
    • Rng::reseed was move into the new SeedableRng trait.
    • All RNGs now have a Debug implementation
  • Completely reworked the C API.
  • Added BufferedRng, a wrapper around an Rng 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

24 Jul 00:24
5e4ea40
Compare
Choose a tag to compare

Changelog

  • Fixed an unsoundness in TlsWyrand allowing for aliased mutable references.

nanorand 0.6.0

08 Jul 00:18
8e282f2
Compare
Choose a tag to compare

This is the big one, folks! Breaking changes, obviously.

Changelog

  • Renamed RNG to Rng
  • 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 of 0 <= 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.

0.5.0

03 Dec 18:15
Compare
Choose a tag to compare
docs: Improve documentation; update benchmarks

0.4.4

23 Sep 23:40
Compare
Choose a tag to compare
chore: Update README, bump version

0.4.3

23 Sep 02:40
Compare
Choose a tag to compare
ci: Give steps better names.

0.4.0

19 Sep 21:09
Compare
Choose a tag to compare
Remove comment; update readme