uuid : update presentation

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5805 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2019-12-08 18:56:14 +00:00
parent 3481539f18
commit 82788b91d1

View File

@@ -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)
);
}
// }}}
}