class Faker::VulnerabilityIdentifier
def cve(year: ::Date.today.year)
-
(String)
-
Parameters:
-
year
(Integer
) -- The year-part of the CVE identifier (defaults to the current year)
def cve(year: ::Date.today.year) index = rand_in_range(1, 99_999).to_s.rjust(4, '0') "CVE-#{year}-#{index}" end