2 3 4
# File 'lib/wiki/random_id.rb', line 2 def self.generate (0..15).collect{(rand*16).to_i.to_s(16)}.join end