Refactor prng to not use 64-bit atomics on 32-bit platforms.

This resolves #495.
7 files changed