Module: Marconi::GUIDGenerator

Extended by:
GUIDGenerator
Included in:
GUIDGenerator
Defined in:
lib/marconi/guid_generator.rb

Instance Method Summary collapse

Instance Method Details

#next_guidObject



9
10
11
12
13
# File 'lib/marconi/guid_generator.rb', line 9

def next_guid
  shortname = Marconi.short_application_name[0,2]
  uid = UUIDTools::UUID.random_create.to_i.to_s(36).rjust(25,'0')
  "#{shortname}-#{uid}"
end