Module: Kontena::Machine::RandomName

Defined in:
lib/kontena/machine/random_name.rb

Instance Method Summary collapse

Instance Method Details

#generate_nameObject



5
6
7
8
9
# File 'lib/kontena/machine/random_name.rb', line 5

def generate_name
  rnd1 = Random.rand(64)
  rnd2 = Random.rand(64)
  "#{adjectives[rnd1%adjectives.length]}-#{nouns[rnd2%adjectives.length]}"
end