Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-25 12:08:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-25 12:08:46 +0300
commit35487a1e925f7b4ec72a3d0cdde94f92582d2087 (patch)
tree5cb21f3e13cea333acc0101a45d92b237a78fd5e /lib/gitlab/serverless
parent4f749a9b30a638f0bd3a19e8d9925e966b0f5cb4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/serverless')
-rw-r--r--lib/gitlab/serverless/domain.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/gitlab/serverless/domain.rb b/lib/gitlab/serverless/domain.rb
new file mode 100644
index 00000000000..ec7c68764d1
--- /dev/null
+++ b/lib/gitlab/serverless/domain.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Serverless
+ class Domain
+ UUID_LENGTH = 14
+
+ def self.generate_uuid
+ SecureRandom.hex(UUID_LENGTH / 2)
+ end
+ end
+ end
+end