Closed ctbur closed 5 years ago
Thanks! I actually did similar update to make it work with our code 0c3498a07b0816175203e36ffc612142aaa0f7e5, but for some reason forgot to merge it. This commit does more as it fixes the deprecations! I would have probably switched to the SmallRng
, but this also works.
Ah, I should have checked the other branches.
I considered using SmallRng
as well, to reduce the amount of dependencies, but the docs say this about it:
Reproducibility of output from this generator is however not required, thus future library versions may use a different internal generator with different output. Further, this generator may not be portable and can produce different output depending on the architecture.
which is of course not something you want in a test.
I updated the dependencies because the older dependencies did not mix well with my code. The tests also now use
XorShiftRng
from the craterand_xorshift
, as it was moved fromrand
into a separate crate.