# File lib/fog/core/mock.rb, line 40 def self.random_hex(length) max = ('f' * length).to_i(16) rand(max).to_s(16).rjust(length, '0') end