Skip to content

Releases: hoxxep/rand-unique

v0.2.2 Documentation

03 Nov 16:57
4730581
Compare
Choose a tag to compare

Improve README docs clarity.

v0.2.1 Rename to rand-unique and exact size iterating

02 Nov 22:31
03aedf8
Compare
Choose a tag to compare
  • Implement RandomSequence<usize>.
  • Implement Iterator::size_hint, with a fix in v0.2.1.
  • Implement ExactSizeIterator on u8, u16, and u32. Cannot be implemented on usize and u64 as the length of the iterator is usize::MAX + 1.
  • RandomSequence::next() and RandomSequence::prev() now return Option<T> and terminate at the end of the sequence instead of wrapping.
  • Add RandomSequence::wrapping_next() and RandomSequence::wrapping_prev().
  • RandomSequence::index() returns Option<T>
  • Add RandomSequence::exhausted() -> bool and RandomSequence::set_index() methods.

v0.1.1 Speed improvements

26 Oct 14:38
c9f2847
Compare
Choose a tag to compare

Benchmarks for all types are now 2-5x faster with the removal of the num-modular dependency, where the functionality used to compute the residue has been replaced with a custom QuadraticResidue trait.

v0.1.0 initial release

26 Oct 13:12
fd7e646
Compare
Choose a tag to compare
Improve chi-squared unit test