Module: FFaker::Guid

Extended by:
Guid, ModuleUtils
Included in:
Guid
Defined in:
lib/ffaker/guid.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, luhn_check, underscore, unique

Methods included from RandomUtils

#fetch_sample, #rand, #shuffle

Instance Method Details

#guidObject

Deprecated.

Often generates invalid UUIDs. Use UUID instead.

Because this method uses arbitrary hexadecimal characters it is likely to generate invalid UUIDs–UUIDs must have a version (1-8) at bits 48-51, and bits 64-65 must be 0b10.



13
14
15
16
# File 'lib/ffaker/guid.rb', line 13

def guid
  warn '[guid] is deprecated. Use the UUID.uuidv4 method instead.'
  FFaker::UUID.uuidv4.upcase
end