Micro-optimize

This commit is contained in:
Ben Ramsey
2020-01-22 00:05:29 -06:00
parent 931c1a6b52
commit 94700421e1
3 changed files with 5 additions and 16 deletions
+1 -6
View File
@@ -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();