module KnifeContainer::Helpers

Public Instance Methods

random_uid() click to toggle source

Generates a short, but random UID for instances.

@return [String]

# File lib/knife-container/helpers.rb, line 10
def random_uid
  require 'securerandom' unless defined?(SecureRandom)
  SecureRandom.hex(3)
end