From 638790af30e268f769567e2d2f48c0fc75006a2d Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 28 Dec 2009 19:58:15 +0000 Subject: [PATCH] make uuids a bit less likely to collide git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16066 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/apr-util/.update | 2 +- libs/apr-util/crypto/getuuid.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/apr-util/.update b/libs/apr-util/.update index db5a0d38df..f430e64b3b 100644 --- a/libs/apr-util/.update +++ b/libs/apr-util/.update @@ -1 +1 @@ -Wed May 13 10:54:08 CDT 2009 +Mon Dec 28 14:55:57 EST 2009 diff --git a/libs/apr-util/crypto/getuuid.c b/libs/apr-util/crypto/getuuid.c index 0d9348760f..293b24eeb2 100644 --- a/libs/apr-util/crypto/getuuid.c +++ b/libs/apr-util/crypto/getuuid.c @@ -201,7 +201,7 @@ APU_DECLARE(void) apr_uuid_get(apr_uuid_t *uuid) d[7] = (unsigned char)(timestamp >> 48); d[6] = (unsigned char)(((timestamp >> 56) & 0x0F) | 0x10); /* clock_seq_hi_and_reserved, uint8 */ - d[8] = (unsigned char)(((uuid_state_seqnum >> 8) & 0x3F) | 0x80); + d[8] = (unsigned char)(((++uuid_state_seqnum >> 8) & 0x3F) | 0x80); /* clock_seq_low, uint8 */ d[9] = (unsigned char)uuid_state_seqnum; /* node, byte[6] */