mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-25 17:45:35 +03:00
Use sprintf() to prefix zeros on the returned node hex string
This commit is contained in:
@@ -36,6 +36,6 @@ class RandomNodeProvider implements NodeProviderInterface
|
||||
// Set the multicast bit; see RFC 4122, section 4.5.
|
||||
$node = $node | 0x010000000000;
|
||||
|
||||
return dechex($node);
|
||||
return sprintf('%012x', $node);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user