@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kumar
Sent: Wednesday, March 07, 2007 11:18 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Not able to generate GUID
Use the below function it will return you a GUID
public function getUID():String
: Thursday, March 08, 2007 1:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Not able to generate GUID
???
You're taking something (the string returned by createUID()) that has a high
probability of being unique and severely increasing the probability that it
isn't by taking
@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Wednesday, March 07, 2007 5:39 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Not able to generate GUID
Any reason why Flex/Actionscript can't use the MAC address or the
CPU's information to get a true GUID
Oh... I should offer one last piece of advice. I went through all of the
hoops of generating the UUIDs because I wanted to avoid having a central
'id' authority in either my application or on the server (this was for
persisting references between objects)... in the end, I took a critical look
at
Yeah, I'd recommend that your tables always have an independent primary 'id'
key that has no significance or ties to your business logic (other than to
uniquely identify a row in your table). The Ruby on Rails guys really
promote this as well and use the universal convention of the first field in
According to the docs, UID uses timestamps and the built-in random number
generator. These two alone do not officially qualify the UID as *globally*
unique as it is possible, however unlikely, that two users could generate
UIDs at the same time and happen to generate similar random numbers
if the database errored because a new row didn't have a unique key?
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scott_flex
Sent: Tuesday, March 06, 2007 1:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Not able
Of scott_flex
Sent: Tuesday, March 06, 2007 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Not able to generate GUID
Well.. i appreciate all the clarification on how the UID is
generated. That certainly builds my confidence that it will stay
unqiue... and even at that these ids
Hi,
scott_flex wrote:
Thanks for the reply... i probably will look into writing my own
implementation. Never really thought of it...
Generating GUIDs on server, while i can do that, just makes more
sense if it's done in the flex app itself.
No, it doesnt.
and yes... these IDs will
9 matches
Mail list logo