Re: CFUUID question
Re: CFUUID question
- Subject: Re: CFUUID question
- From: Philip Mobley <email@hidden>
- Date: Wed, 28 Apr 2010 13:15:50 -0700
On Apr 28, 2010, at 12:49 PM, Douglas Davidson wrote:
>> Is my assumption correct that the CFUUID class only generates RANDOM UUID values? (i.e. UUID version 4)
>>
>> I am interested in creating a reproducible UUID based on a string input value (such as UUID version 3 or 5), and this doesn't seem possible with CFUUID.
>
> CFUUIDCreate() generates a new random UUID. CFUUIDCreateWithBytes() and CFUUIDCreateFromString() create CFUUID objects based on existing values.
From my understanding of the documentation, both of these functions are only to create a CFUUID object based on either raw bytes or a string format of an EXISTING UUID.
MD5 is more of what I am looking for, but in the UUID format to avoid the MD5 collisions. For example a new UUID based on something like [NSString stringWithFormat:@"%@%@%@", machineUUID, [game description], [player name]]. The resulting UUID could be generated at any time given the source key value, but the source key would not be exposed within the UUID.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden