mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
Fix bug causing test to fail on 32-bit systems
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user