Module: RandomId

Defined in:
lib/wiki/random_id.rb

Class Method Summary collapse

Class Method Details

.generateObject



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