10 lines
308 B
Ruby
10 lines
308 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Security
|
||
|
class VulnerabilityUUID
|
||
|
def self.generate(report_type:, primary_identifier_fingerprint:, location_fingerprint:, project_id:)
|
||
|
Gitlab::UUID.v5("#{report_type}-#{primary_identifier_fingerprint}-#{location_fingerprint}-#{project_id}")
|
||
|
end
|
||
|
end
|
||
|
end
|