jwagner / simplex-noise.js

A fast simplex noise implementation in Javascript / Typescript.
MIT License
1.61k stars 130 forks source link

Include ALEA in simplex-noise.js #19

Closed jwagner closed 6 years ago

jwagner commented 6 years ago

Properly seeding simplex-noise.js has repeatedly caused confusion among it's user base. For the next release include the alea prng by Johannes Baagøe directly in simplex-noise.js. Use it to allow the construction of noise generators directly from a seed.

It should not add more than a few hundred bytes to the total size of the library which I consider to be a good trade-off considering the usability benefits.

https://github.com/nquinlan/better-random-numbers-for-javascript-mirror#license