diff options
author | Phil Davis <phil.davis@inf.org> | 2015-03-03 00:39:50 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-03-03 00:39:50 +0545 |
commit | 751533a2c8ee81b8db7a8435da1c321135b427f9 (patch) | |
tree | 5c913d06429787410fd2f84a8288ebe17f1fbc90 /etc/inc/uuid.php | |
parent | 8f5f40c9fca0bfb637589b4c86e53bfb80753c87 (diff) | |
download | pfsense-751533a2c8ee81b8db7a8435da1c321135b427f9.zip pfsense-751533a2c8ee81b8db7a8435da1c321135b427f9.tar.gz |
Code style etc inc u
Diffstat (limited to 'etc/inc/uuid.php')
-rw-r--r-- | etc/inc/uuid.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/uuid.php b/etc/inc/uuid.php index 9eaf2fd..700f392 100644 --- a/etc/inc/uuid.php +++ b/etc/inc/uuid.php @@ -44,7 +44,7 @@ class UUID { const FMT_BINARY = 102; const FMT_QWORD = 1; /* Quad-word, 128-bit (not impl.) */ const FMT_DWORD = 2; /* Double-word, 64-bit (not impl.) */ - const FMT_WORD = 4; /* Word, 32-bit (not impl.) */ + const FMT_WORD = 4; /* Word, 32-bit (not impl.) */ const FMT_SHORT = 8; /* Short (not impl.) */ const FMT_BYTE = 16; /* Byte */ const FMT_DEFAULT = 16; @@ -169,7 +169,7 @@ class UUID { $raw .= $node; /* Hash the namespace and node and convert to a byte array */ - $val = $hash($raw, true); + $val = $hash($raw, true); $tmp = unpack('C16', $val); foreach (array_keys($tmp) as $key) $byte[$key - 1] = $tmp[$key]; @@ -187,7 +187,7 @@ class UUID { $field['time_hi'] &= 0x0fff; $field['time_hi'] |= ($version << 12); - return ($field); + return ($field); } static private function generateNameMD5($ns, $node) { return self::generateName($ns, $node, "md5", @@ -221,7 +221,7 @@ class UUID { $uuid['time_low'] = $low; $uuid['time_mid'] = $high & 0x0000ffff; $uuid['time_hi'] = ($high & 0x0fff) | (self::UUID_TIME << 12); - + /* * We don't support saved state information and generate * a random clock sequence each time. |