diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 07:33:21 +0000 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /config/settings.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) | |
download | gitlab-ce-36a59d088eca61b834191dacea009677a96c052f.tar.gz |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
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 |