I doubt you will find many other implementations
that generate UUID's much differently than ColdFusion.

There is a standard algorithm to follow for generating
a UUID. There are a few variations on them but in order
to ensure the global uniqueness you have to follow the
algorithm.  It is based on time and some other factors.

Id say it is somewhat predictable just the size of UUID's
and possible number of UUID's
makes them hard to just pull out of the air.

The thing to remember with the CF UUID's is that they follow
a very complex algorithm much more complex than the one
you have shown to ensure the uniqueness of the UUID's.


The algorithm involves several steps and very high precision
numbers which ColdFusion is not capable of dealing with.

Just keep that in mind with your own custom UUID tags :)

Jeremy Allen
elliptIQ Inc.

>-----Original Message-----
>From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
>Sent: Friday, December 15, 2000 1:12 PM
>To: Fusebox
>Subject: inserting your own UUID into a db table
>
>
>Along the lines of Steve N's recommendation to insert your own ID fields
>into db tables, I present,
>(drumroll)
>CF_UUID ! Ta-da! Yeah, yer all saying 'so what..." Well, I'll tell ya what.
>This came out of my need to manually stick in a UUID into a table, it
>relates to that Crystal Reports thing I mentioned in a separate thread
>yesterday.
>
>I tried using the built-in createUUID() function, but if you want to see
>some pretty lame UUID, try CFLOOPING it a hundred times. Out of the entire
>UUID string, maybe 3 chars will change over the entire loop.
>
>SoOoOo, not willing to use other's UUID tags cuz' I wanted to roll
>my own, I
>cooked up CF_UUID (can you believe NOBODY named their tag CF_UUID yet?),
>which went up to the Allaire Tag Gallery.
>
>Ya can also snag a copy at www.anthc.org/skunkworks ...
>
>
>(and a shameless, seriously shameless plug... Go to
>www.mp3.com/kittycat and
>listen to my songs. I've got one tune hovering at #11 on the
>alternative-grunge chart)
>
>Alan McCollough
>Web Programmer
>Allaire Certified ColdFusion Developer
>Alaska Native Medical Center
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to