Module: Emjay::GenRandomHexString

Defined in:
lib/emjay/helpers/gen_random_hex_string.rb

Class Method Summary collapse

Class Method Details

.call(length) ⇒ Object



5
6
7
# File 'lib/emjay/helpers/gen_random_hex_string.rb', line 5

def self.call(length)
  length.times.map { rand(16).to_s(16) }.join
end