uuid : update presentation
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5805 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
6
uuid.php
6
uuid.php
@@ -8,9 +8,12 @@
|
||||
*/
|
||||
class uuid
|
||||
{
|
||||
/** Based on http://php.net/manual/fr/function.uniqid.php#94959
|
||||
/** Create a UUID
|
||||
* Based on http://php.net/manual/fr/function.uniqid.php#94959
|
||||
* @return string UUID created
|
||||
*/
|
||||
public static function uuid4 ()
|
||||
// {{{
|
||||
{
|
||||
return sprintf ('%04x%04x-%04x-%04x-%04x-%04x%04x%04x',
|
||||
|
||||
@@ -33,4 +36,5 @@ class uuid
|
||||
mt_rand (0, 0xffff), mt_rand (0, 0xffff), mt_rand (0, 0xffff)
|
||||
);
|
||||
}
|
||||
// }}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user