[libgens] CrazyEffect.cpp: Cache the random number.
authorDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 6 Sep 2015 19:43:34 +0000 (15:43 -0400)
committerDavid Korth <gerbilsoft@gerbilsoft.com>
Sun, 6 Sep 2015 19:43:34 +0000 (15:43 -0400)
commitf56a99a9b98e988b2f73c0f6839cf18ba69fb13d
tree0ebe259785936b72a1354e9bc3c1920639dce781
parentd9548a8482facecc0f355c72efb7041ba3534655
[libgens] CrazyEffect.cpp: Cache the random number.

The Xorshift+ RNG generates a 64-bit random number. We only need a
15-bit number, so we can get four 15-bit numbers from a single
64-bit number.
src/libgens/Effects/CrazyEffect.cpp