• 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: UUID method Garbage Collection safe?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UUID method Garbage Collection safe?


  • Subject: Re: UUID method Garbage Collection safe?
  • From: Bill Bumgarner <email@hidden>
  • Date: Wed, 22 Jul 2009 12:47:04 -0700

On Jul 22, 2009, at 12:42 PM, Squ Aire wrote:

Yes I was aware of this method. However, according to the docs it only guarantees uniqueness for a given process, and doesn't guarantee it will be "globally" unique, if you know what I mean. Thanks for the suggestion though.

As the method name implies, it'll be globally unique. The string contains the mach absolute time, the pid, and some random gunk.


So.... unless another machine executes -globallyUniqueString at exactly the same time from a process with the same pid while the two machine's entropy pools are in the same exact state, they'll be unique.

b.bum
_______________________________________________

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


References: 
 >UUID method Garbage Collection safe? (From: Squ Aire <email@hidden>)
 >Re: UUID method Garbage Collection safe? (From: Julien Jalon <email@hidden>)
 >Re: UUID method Garbage Collection safe? (From: Keith Duncan <email@hidden>)
 >RE: UUID method Garbage Collection safe? (From: Squ Aire <email@hidden>)

  • Prev by Date: Re: [window frame] reporting wrong y coordinate
  • Next by Date: Re: UUID method Garbage Collection safe?
  • Previous by thread: RE: UUID method Garbage Collection safe?
  • Next by thread: Re: UUID method Garbage Collection safe?
  • Index(es):
    • Date
    • Thread