source/Core/UniversallyUniqueIdGenerator.php
public function generateV5($sSeed, $sSalt)
    {
        $sSeed = str_replace(['-', '{', '}'], '', $sSeed);
        $sBinarySeed = '';
        for ($i = 0; $i < strlen($sSeed); $i += 2) {
            $sBinarySeed .= chr(hexdec($sSeed[$i] . $sSeed[$i + 1]));
        }
        $sHash = sha1($sBinarySeed . $sSalt);
        $sUUID = sprintf(
            '%08s-%04s-%04x-%04x-%12s',
            substr($sHash, 0, 8),
            substr($sHash, 8, 4),
            (hexdec(substr($sHash, 12, 4)) & 0x0fff) | 0x3000,
            (hexdec(substr($sHash, 16, 4)) & 0x3fff) | 0x8000,
            substr($sHash, 20, 12)
        );

        return $sUUID;
    }
public function generateV5($sSeed, $sSalt)
    {
        $sSeed = str_replace(['-', '{', '}'], '', $sSeed);
        $sBinarySeed = '';
        for ($i = 0; $i < strlen($sSeed); $i += 2) {
            $sBinarySeed .= chr(hexdec($sSeed[$i] . $sSeed[$i + 1]));
        }
        $sHash = sha1($sBinarySeed . $sSalt);
        $sUUID = sprintf(
            '%08s-%04s-%04x-%04x-%12s',
            substr($sHash, 0, 8),
            substr($sHash, 8, 4),
            (hexdec(substr($sHash, 12, 4)) & 0x0fff) | 0x3000,
            (hexdec(substr($sHash, 16, 4)) & 0x3fff) | 0x8000,
            substr($sHash, 20, 12)
        );

        return $sUUID;
    }
public function generateV5 ( $ sSeed , $ sSalt ) { $ sSeed = str_replace ( [ '-' , '{' , '}' ] , '' , $ sSeed ) ; $ sBinarySeed = '' ; for ( $ i = 0 ; $ i < strlen ( $ sSeed ) ; $ i += 2 ) { $ sBinarySeed .= chr ( hexdec ( $ sSeed [ $ i ] . $ sSeed [ $ i + 1 ] ) ) ; } $ sHash = sha1 ( $ sBinarySeed . $ sSalt ) ; $ sUUID = sprintf ( '%08s-%04s-%04x-%04x-%12s' , substr ( $ sHash , 0 , 8 ) , substr ( $ sHash , 8 , 4 ) , ( hexdec ( substr ( $ sHash , 12 , 4 ) ) & 0x0fff ) | 0x3000 , ( hexdec ( substr ( $ sHash , 16 , 4 ) ) & 0x3fff ) | 0x8000 , substr ( $ sHash , 20 , 12 ) ) ; return $ sUUID ; }
Generates version 5 UUID.

@param string $sSeed
@param string $sSalt

@return string
Generates version 5 UUID .