Example #1
0
 /**
  * Generate a UUID.
  * 
  * 32 characters (a-f and 0-9) in format 8-4-4-4-12.
  * 
  * @uses hash_format() {@see wells5609/php-util}
  * 
  * @return string A 32-char length (36 with dashes) UUID (v4).
  */
 function generate_uuid()
 {
     return hash_format(xpl\Utility\Rand::hex(32));
 }
Example #2
0
/**
 * Generate a UUID
 * 32 characters (a-f and 0-9) in format 8-4-4-4-12.
 */
function generate_uuid()
{
    return hash_format(\Phpf\Util\Rand::hex(32));
}