Skip to content

Commit

Permalink
secure random fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jadencarver authored and ryanb committed Jan 26, 2012
1 parent 037f09d commit c70feae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/private_pub/templates/private_pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ test:
secret_token: "secret"
production:
server: "http://example.com/faye"
secret_token: "<%= ActiveSupport::SecureRandom.hex(32) %>"
secret_token: "<%= defined?(SecureRandom) ? SecureRandom.hex(32) : ActiveSupport::SecureRandom.hex(32) %>"
signature_expiration: 3600 # one hour

0 comments on commit c70feae

Please sign in to comment.