Implement SafeRandom