Use SecureRandom instead of a gem dependency