[Groonga-commit] ranguba/ranguba at 7afd1f5 [master] Use SecureRandom provided by Ruby itself

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Feb 19 22:20:36 JST 2014


Kouhei Sutou	2014-02-19 22:20:36 +0900 (Wed, 19 Feb 2014)

  New Revision: 7afd1f5e52482b172948a508eed98feadff541d4
  https://github.com/ranguba/ranguba/commit/7afd1f5e52482b172948a508eed98feadff541d4

  Message:
    Use SecureRandom provided by Ruby itself

  Modified files:
    config/initializers/secret_token.rb

  Modified: config/initializers/secret_token.rb (+1 -1)
===================================================================
--- config/initializers/secret_token.rb    2014-02-19 00:04:35 +0900 (319d6ee)
+++ config/initializers/secret_token.rb    2014-02-19 22:20:36 +0900 (8ba2e56)
@@ -8,7 +8,7 @@
 secret_token_path = Rails.root + "config/secret_token.txt"
 unless secret_token_path.exist?
   secret_token_path.open("w") do |file|
-    file.puts(ActiveSupport::SecureRandom.hex(64))
+    file.puts(SecureRandom.hex(64))
   end
 end
 Ranguba::Application.config.secret_token = secret_token_path.read.chomp
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index