added cryptographically safe RNG and other RNGs for testing.