Sha256: e3ba20709b6474b9bc3c330de0ae730ba70632b55dbfd2813889c3c42192734a
Contents?: true
Size: 384 Bytes
Versions: 1
Compression:
Stored size: 384 Bytes
Contents
module FleetAPI class Mock def self.uuid SecureRandom.uuid end def self.random_id existing_ids = [] while true do id = SecureRandom.random_number(1000) unless existing_ids.include?(id) existing_ids << id return id end end end def self.random_name SecureRandom.hex(6) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coreos-fleet-api-0.1.0 | lib/fleet_api/mock.rb |