public function getUuid()
    {
        $integers = array_values(unpack('n8', $this->generator->getBytes(16)));

        $integers[3] &= 0x0FFF;
        $integers[4] = $integers[4] & 0x3FFF | 0x8000;

        return vsprintf('%04x%04x-%04x-4%03x-%04x-%04x%04x%04x', $integers);
    }
public function getUuid()
    {
        $integers = array_values(unpack('n8', $this->generator->getBytes(16)));

        $integers[3] &= 0x0FFF;
        $integers[4] = $integers[4] & 0x3FFF | 0x8000;

        return vsprintf('%04x%04x-%04x-4%03x-%04x-%04x%04x%04x', $integers);
    }
public function getUuid ( ) { $ integers = array_values ( unpack ( 'n8' , $ this -> generator -> getBytes ( 16 ) ) ) ; $ integers [ 3 ] &= 0x0FFF ; $ integers [ 4 ] = $ integers [ 4 ] & 0x3FFF | 0x8000 ; return vsprintf ( '%04x%04x-%04x-4%03x-%04x-%04x%04x%04x' , $ integers ) ; }
Returns a random UUID version 4 identifier.
@return string A random UUID identifier
Returns a random UUID version 4 identifier .