summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/guid.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-05-16 13:41:00 +0000
committerBenny Prijono <bennylp@teluu.com>2007-05-16 13:41:00 +0000
commitb7002d89c144ac5f120a3ca95c1234953e9577cb (patch)
tree35204ff75e7d783b803c59168b4666fcfedfb513 /pjlib/include/pj/guid.h
parentae8f7f7c9c33ea41e257846e43b6bd264e506528 (diff)
Fixed ticet #277: GUID generation cannot generate more than 2^16 unique numbers (thanks Igor Sobinov)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1282 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/guid.h')
-rw-r--r--pjlib/include/pj/guid.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/pjlib/include/pj/guid.h b/pjlib/include/pj/guid.h
index cb34d973..3eea11a3 100644
--- a/pjlib/include/pj/guid.h
+++ b/pjlib/include/pj/guid.h
@@ -48,10 +48,13 @@ PJ_BEGIN_DECL
/**
* PJ_GUID_STRING_LENGTH specifies length of GUID string. The value is
* dependent on the algorithm used internally to generate the GUID string.
- * If real GUID generator is used, then the length will be 128bit or
- * 32 bytes. If shadow GUID generator is used, then the length
+ * If real GUID generator is used, then the length will be between 32 and
+ * 36 bytes. If shadow GUID generator is used, then the length
* will be 20 bytes. Application should not assume which algorithm will
* be used by GUID generator.
+ *
+ * Regardless of the actual length of the GUID, it will not exceed
+ * PJ_GUID_MAX_LENGTH characters.
*/
extern const unsigned PJ_GUID_STRING_LENGTH;
@@ -59,7 +62,7 @@ extern const unsigned PJ_GUID_STRING_LENGTH;
* PJ_GUID_MAX_LENGTH specifies the maximum length of GUID string,
* regardless of which algorithm to use.
*/
-#define PJ_GUID_MAX_LENGTH 32
+#define PJ_GUID_MAX_LENGTH 36
/**
* Create a globally unique string, which length is PJ_GUID_STRING_LENGTH