homebrew-cask/spec/support/sha256_helper.rb

9 lines
145 B
Ruby

require'digest'
module Sha256Helper
def random_sha256
seed = "--#{rand(10000)}--#{Time.now}--"
Digest::SHA2.hexdigest(seed)
end
end