class InlineSvg::IdGenerator
def self.generate(base, salt, randomness: Randomness)
def self.generate(base, salt, randomness: Randomness) bytes = Digest::SHA1.digest("#{base}-#{salt}-#{randomness.call}") 'a' + Digest.hexencode(bytes).to_i(16).to_s(36) end