You are here

function _gathercontent_uuid_generate in GatherContent 7.3

UUID Generator.

Return value

string UUID.

See also

http://php.net/manual/en/function.uniqid.php#94959

4 calls to _gathercontent_uuid_generate()
drush_gathercontent_import in ./gathercontent.drush.inc
Implements drush_COMMAND().
gathercontent_import_form_confirm_submit in ./gathercontent.import.inc
Grdg.
gathercontent_views_vbo_update in ./gathercontent.module
Submit callback for `views_bulk_operations_confirm_form`.
gathercontent_views_vbo_upload in ./gathercontent.module
@TODO: function comment!!!

File

./gathercontent.module, line 1644

Code

function _gathercontent_uuid_generate() {
  return sprintf('%04x%04x-%04x-%04x-%04x-%04x%04x%04x', mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xfff) | 0x4000, mt_rand(0, 0x3fff) | 0x8000, mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff));
}