Replaces the custom PRNG used by 2D particles code with a wrapper for the PRNG located under core/math.