From 82788b91d1b31f67cb27215f4284724d4887684a Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Sun, 8 Dec 2019 18:56:14 +0000 Subject: [PATCH] uuid : update presentation git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5805 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- uuid.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/uuid.php b/uuid.php index 1acdd79..c2f5531 100644 --- a/uuid.php +++ b/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) ); } + // }}} }