On Wed, Nov 25, 2015 at 7:59 PM, Chris Peterson <cpeter...@mozilla.com> wrote:
> On 11/25/15 5:51 AM, Xidorn Quan wrote: > >> After reading this article as well as some introduction from the >> wikipedia, it seems to me that "xorshift+" is probably the best >> algorithm to adopt, because it is simple, fast, and passes all tests >> in TestU01 [1], which indicates it should also have a good quality. >> > > We have an implementation of the xorshift128+ PRNG in > mfbt/XorShift128PlusRNG.h from bug 1206356 that could be used. > I landed patches to use this RNG for Math.random() [0]. xorshift128+ does very well in statistical tests and is very fast (faster than our previous one actually). Interestingly, V8 and JSC are using the same algorithm now (since a few days). Jan [0] https://bugzilla.mozilla.org/show_bug.cgi?id=322529 _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform