Adds Redmine::Utils.random_hex for generating a random hex string.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9071 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
+1
-1
@@ -610,7 +610,7 @@ class User < Principal
|
||||
|
||||
# Returns a 128bits random salt as a hex string (32 chars long)
|
||||
def self.generate_salt
|
||||
ActiveSupport::SecureRandom.hex(16)
|
||||
Redmine::Utils.random_hex(16)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user