diff options
Diffstat (limited to 'config/settings.rb')
-rw-r--r-- | config/settings.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/settings.rb b/config/settings.rb index 1860ea0f659..df67fdc8c53 100644 --- a/config/settings.rb +++ b/config/settings.rb @@ -195,9 +195,9 @@ class Settings < Settingslogic # Set a default UUID for the case when the UUID hasn't been initialized. uuid = Gitlab::CurrentSettings.uuid || 'uuid-not-set' - minute = Digest::MD5.hexdigest(uuid + 'minute').to_i(16) % 60 - hour = Digest::MD5.hexdigest(uuid + 'hour').to_i(16) % 24 - day_of_week = Digest::MD5.hexdigest(uuid).to_i(16) % 7 + minute = Digest::SHA256.hexdigest(uuid + 'minute').to_i(16) % 60 + hour = Digest::SHA256.hexdigest(uuid + 'hour').to_i(16) % 24 + day_of_week = Digest::SHA256.hexdigest(uuid).to_i(16) % 7 "#{minute} #{hour} * * #{day_of_week}" end |