Skip to content

Releases: Absolucy/nanorand-rs

nanorand v0.8.0

08 Jun 05:14
ef6e749

Choose a tag to compare

What's Changed

  • Fix lower bound for signed generate_range function 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

Full Changelog: 0.7.0...0.8.0

nanorand v0.7.0

09 Mar 00:47
f7c6796

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

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

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

Choose a tag to compare

docs: Improve documentation; update benchmarks

0.4.4

23 Sep 23:40

Choose a tag to compare

chore: Update README, bump version

0.4.3

23 Sep 02:40

Choose a tag to compare

ci: Give steps better names.

0.4.0

19 Sep 21:09

Choose a tag to compare

Remove comment; update readme