mirror of
https://github.com/ramsey/uuid.git
synced 2026-07-02 18:47:28 +03:00
Micro-optimize
This commit is contained in:
@@ -95,12 +95,7 @@ class DceSecurityGenerator implements DceSecurityGeneratorInterface
|
||||
}
|
||||
|
||||
$domainByte = pack('n', $localDomain)[1];
|
||||
$identifierBytes = hex2bin(str_pad(
|
||||
$this->numberConverter->toHex($localIdentifier->toString()),
|
||||
8,
|
||||
'0',
|
||||
STR_PAD_LEFT
|
||||
));
|
||||
$identifierBytes = pack('N*', $localIdentifier->toString());
|
||||
|
||||
if ($node instanceof Hexadecimal) {
|
||||
$node = $node->toString();
|
||||
|
||||
Reference in New Issue
Block a user