Updated rng to seed based on a SecureRandom value for increased
security.