Skip to content

Commit

Permalink
Merge pull request #160 from GrahamCampbell/analysis-LZOmPl
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
GrahamCampbell committed Dec 4, 2023
2 parents 117621e + 509f308 commit 0aa5df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Identifier/UuidV4Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public static function generate(): string
$hash = bin2hex(random_bytes(16));

$timeHi = hexdec(substr($hash, 12, 4)) & 0x0FFF;
$timeHi &= ~(0xF000);
$timeHi &= ~0xF000;
$timeHi |= 4 << 12;

$clockSeqHi = hexdec(substr($hash, 16, 2)) & 0x3F;
$clockSeqHi &= ~(0xC0);
$clockSeqHi &= ~0xC0;
$clockSeqHi |= 0x80;

$params = [
Expand Down

0 comments on commit 0aa5df5

Please sign in to comment.