WaDelma / poisson

n-dimensional poisson-disk distribution generation for rust.
MIT License
10 stars 8 forks source link

Dependency update #23

Closed ctbur closed 5 years ago

ctbur commented 5 years ago

I updated the dependencies because the older dependencies did not mix well with my code. The tests also now use XorShiftRng from the crate rand_xorshift, as it was moved from rand into a separate crate.

WaDelma commented 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.

ctbur commented 5 years ago

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.