method
generate_secret_with_secure_random
v2.1.0 -
Show latest stable
- Class:
Rails::SecretKeyGenerator
generate_secret_with_secure_random()public
Generate a random secret key with Ruby 1.9’s SecureRandom module. Raises LoadError if the current Ruby version does not support SecureRandom.