Releases: hoxxep/rand-unique
Releases · hoxxep/rand-unique
v0.2.2 Documentation
v0.2.1 Rename to rand-unique and exact size iterating
- Implement
RandomSequence<usize>
. - Implement
Iterator::size_hint
, with a fix inv0.2.1
. - Implement
ExactSizeIterator
onu8
,u16
, andu32
. Cannot be implemented onusize
andu64
as the length of the iterator isusize::MAX + 1
. RandomSequence::next()
andRandomSequence::prev()
now returnOption<T>
and terminate at the end of the sequence instead of wrapping.- Add
RandomSequence::wrapping_next()
andRandomSequence::wrapping_prev()
. RandomSequence::index()
returnsOption<T>
- Add
RandomSequence::exhausted() -> bool
andRandomSequence::set_index()
methods.
v0.1.1 Speed improvements
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
Improve chi-squared unit test