The Distribution<u64> is a breaking change and will have a bit of negative impact on the call side, because it requires sometimes type annotations.
Alternatively we keep the maximum lambda and document that it is always safe to just as u64 on the samples if required.
CHANGELOG.md
entrySummary
This addresses https://github.com/rust-random/rand/issues/1497 by adding
Distribution<u64>
It also solves https://github.com/rust-random/rand/issues/1312 by not allowinglambda
bigger than1.844e19
(this also makes them always fit intou64
)Details
The
Distribution<u64>
is a breaking change and will have a bit of negative impact on the call side, because it requires sometimes type annotations. Alternatively we keep the maximum lambda and document that it is always safe to justas u64
on the samples if required.