WardBenjamin / SimplexNoise

C# Simplex Noise (1D, 2D, 3D). Supports arbitrary sizes and scales.
BSD 3-Clause "New" or "Revised" License
160 stars 38 forks source link

Make class non-static to allow several instances with different seeds #12

Closed giovinazzo-kevin closed 1 year ago

giovinazzo-kevin commented 1 year ago

A possible use case scenario is a world generator using "scoped" random generators: each scope is responsible for instancing a new RNG with a specific seed derived from the global seed. Such generators may run in parallel, making the current approach prone to thread safety issues.

giovinazzo-kevin commented 1 year ago

Nevermind, found this: https://github.com/dclipca/simplex

Which is essentially what I'm asking for.