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

This resolves #495.
8 files changed