• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Generating Unique ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating Unique ID


  • Subject: Re: Generating Unique ID
  • From: Georg Tuparev <email@hidden>
  • Date: Fri, 5 Sep 2003 14:20:29 +0200

On Friday, September 5, 2003, at 12:14 PM, Bill Cheeseman wrote:

A -globallyUniqueString is apparently transient, guaranteed to be unique
only for a given process on a given network during a given session, although
the documentation isn't mathematically precise about the algorithm: "This
method uses the host name, process ID, and a time stamp to ensure that the
string returned will be unique for the network. This method generates a new
string each time it is invoked, so it also uses a counter to guarantee that
strings created from the same process are unique." It apparently would not
serve to generate unique record ids for a database that will be used
repeatedly over time on different machines.

I did not get the impression that persistent global ID was the subject here, but I might be wrong. But if someone needs it, then use the build-in EOF or database specific functionality.

My point is, that one should not need it more complexity then needed (in most cases simple counter will do it anyway). I wrote the original globallyUniqueString for GNUstep (back at 1994 I think) and so far I never got anyone complaining that there is not enough uniqueness there...

Georg Tuparev
Tuparev Technologies
Klipper 13
1186 VR Amstelveen
The Netherlands
Mobile: +31-6-55798196
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Generating Unique ID
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: Generating Unique ID (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Generating Unique ID
  • Next by Date: Re: Generating Unique ID
  • Previous by thread: Re: Generating Unique ID
  • Next by thread: Re: Generating Unique ID
  • Index(es):
    • Date
    • Thread