Fix bug causing test to fail on 32-bit systems

This commit is contained in:
Ben Ramsey
2020-01-22 00:41:45 -06:00
parent b141479d21
commit 9988854cf1
+6 -1
View File
@@ -95,7 +95,12 @@ class DceSecurityGenerator implements DceSecurityGeneratorInterface
}
$domainByte = pack('n', $localDomain)[1];
$identifierBytes = pack('N*', $localIdentifier->toString());
$identifierBytes = hex2bin(str_pad(
$this->numberConverter->toHex($localIdentifier->toString()),
8,
'0',
STR_PAD_LEFT
));
if ($node instanceof Hexadecimal) {
$node = $node->toString();