jgranick/NME — pull request #10 by djcsdy (2012-08-01 03:47:39+00:00)
Title: Make neash’s `BitmapData.noise()` equivalent to Flash again

e233d130d4 fixed NME to compile with pre-C++11 toolchains. However, it also changed the PRNG used to generate noise to an implementation-dependent choice. This means that neash will generate different noise on different platforms, and in particular will generate different noise to Flash even given the same seed and parameters.

This patch makes neash generate the same noise as Flash again. It retains compatibility with pre-C++11 toolchains by introducing a standalone implementation of the MINSTD PRNG.