pvigier / perlin-numpy

A fast and simple perlin noise generator using numpy
https://pvigier.github.io/2018/06/13/perlin-noise-numpy.html
MIT License
304 stars 50 forks source link

Use a local RNG for reproduceable results #15

Open Permafacture opened 9 months ago

Permafacture commented 9 months ago

This is the recommended practice for using numpy random numbers. Setting an RNG within the function means the results will always be reproduce-able regardless of what other functions in the main program are also consuming random numbers

jaroslavknotek commented 5 months ago

@pvigier Is it possible to merge this PR? There are no breaking changes involved therefore release should be smooth.

mcejp commented 4 months ago

For what it's worth, I added this in my fork, which is also published on PyPI :)