discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining a UUID NSString


From: Richard Frith-Macdonald
Subject: Re: Obtaining a UUID NSString
Date: Thu, 26 May 2011 07:09:07 +0100

On 26 May 2011, at 06:43, Austin Clow wrote:

> Thank you for your response, 
> 
> However,  -globallyUniqueString contains information (host name, the process 
> ID, a timestamp and a counter), I would prefer a UUID that has no information 
> encoded within it.  

You can make an md5 or sha1 hash of the string (or just use a random number 
generator).
There's portable ObjC md5 support in the gnustep-base additions and sha1 
support in the webservices library (as categories of NSData).

If you want to use C code, you can use the e2fsprogs package according to 
wikipedia.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]