Skip to content

Instantly share code, notes, and snippets.

@JangoSteve
Created March 1, 2012 21:13
Show Gist options
  • Save JangoSteve/1953264 to your computer and use it in GitHub Desktop.
Save JangoSteve/1953264 to your computer and use it in GitHub Desktop.
Generate session secret
require 'active_support/secure_random'
random_string = ActiveSupport::SecureRandom.hex(30)
puts random_string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment