Here's the code I ran as a test:
THis is alan's<br>
<cfloop from ="1" to ="5" index="z">
<cf_uuid>
<cfoutput>#UUID#<br>
</cfoutput>
</cfloop>
and this ain't...<br>
<cfloop from ="1" to ="5" index="z">
<cfoutput>#CreateUUID()#<br>
</cfoutput>
And here is the results:
THis is alan's
C81EFB22-B071-B071-97B6-97B97267850BE506
655DA5B9-5D90-5D90-34E4-34E409FEEB603949
028C6E0F-FACE-FACE-FA23-E123C35441A47D7C
B0BA2897-B0BD-971D-971D-8E518CEBA5E8B2B0
65A9D22E-5DF9-544C-444C-44403662FB4DE5E3
and this ain't...
6505F7EA-D2E1-11D4-B17000E0295FC366
6505F7EB-D2E1-11D4-B17000E0295FC366
6505F7EC-D2E1-11D4-B17000E0295FC366
6505F7ED-D2E1-11D4-B17000E0295FC366
6505F7EE-D2E1-11D4-B17000E0295FC366

Now, the box I'm running this on is my development box, a Pentium Pro 200,
Win NT 4.0, SP6a, CF4.5.1 Ent Ed SP1. Tell me, what is the setup you ran
your createUUID() test on?

Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center

> -----Original Message-----
> From: Erik Voldengen [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 15, 2000 4:09 PM
> To:   Fusebox
> Subject:      RE: inserting your own UUID into a db table
> 
> Those are wierd results, Alan.  I just ran this code on
> my PC, running WIn2000:
> 
> <cfoutput>
> <cfloop from="1" to="10" index="i">
>       #CreateUUID()#<BR>
> </CFLOOP>
> </CFOUTPUT>
> 
> And I got:
> 
> 92135D25-A5B1-4B21-9416C81D1BBEE261
> AD3FFCCC-5B9D-460E-8D8C38642633AF92
> 3A96B636-1E3D-4860-AE983269A53ADD98
> BC99EDC9-D8A1-4C63-961E2DCE780CFA21
> EACE7D25-3D98-48C8-92B63D7890F4848A
> EC069231-718A-4664-99267707C7D2BF2D
> 9FFEC4BC-D385-4690-B7EDAD09C508238A
> F17F9CB6-FF60-4E14-9D8FE3D3DDE9B113
> 0A9DB40A-6014-490A-867B521C2E709D5F
> 6FDBD9DE-89D4-4774-8AA005F80F47C127
> 
> > -----Original Message-----
> > From: Hal Helms [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 15, 2000 5:55 PM
> > To: Fusebox
> > Subject: RE: inserting your own UUID into a db table
> > 
> > 
> > Alan, are these true UUIDs?
> > 
> > Hal Helms
> > == See www.ColdFusionTraining.com for info on "Best Practices with
> > ColdFusion & Fusebox" training, Jan 22-25 ==
> > 
> > 
> > -----Original Message-----
> > From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 15, 2000 6:14 PM
> > To: Fusebox
> > Subject: RE: inserting your own UUID into a db table
> > 
> > 
> > Here is a CFLOOP of 5 UUIDs built using CreateUUID():
> > 6505F7E0-D2E1-11D4-B17000E0295FC366
> > 6505F7E1-D2E1-11D4-B17000E0295FC366
> > 6505F7E2-D2E1-11D4-B17000E0295FC366
> > 6505F7E3-D2E1-11D4-B17000E0295FC366
> > 6505F7E4-D2E1-11D4-B17000E0295FC366
> > Care to guess what the sixth run of CFLOOP produced?
> > 
> > Now, here is a CFLOOP of 5 UUIDs using CF_UUID:
> > 09776555-09DA-E1DA-E1DA-D81ECBA988E8F77F
> > BF662FEC-A7C6-AE08-9E08-9E087421FE4C2BA2
> > 6CA0A744-44F4-44F4-3B37-3B370B8854A18EF6
> > 09DE61D9-0923-E123-E123-D876C51CB8D6C329
> > CF0D2A51-A70D-AE61-9E61-9E64A1B72F4B176E
> > Care to take a crack at the sixth iteration of the CFLOOP? Hah!
> > 
> > Now, consider the following: If you stuff a UUID into a URL 
> > as a security
> > token for selecting user sessions, shopping carts, or 
> > whatever, wouldn't you
> > like to know that somebody is going to have to do a LOT of 
> > work before they
> > get lucky with a URL hack?
> > 
> > 
> > Alan McCollough
> > Web Programmer
> > Allaire Certified ColdFusion Developer
> > Alaska Native Medical Center
> > 
> > > -----Original Message-----
> > > From:     Erik Voldengen [SMTP:[EMAIL PROTECTED]]
> > > Sent:     Friday, December 15, 2000 11:11 AM
> > > To:       Fusebox
> > > Subject:  RE: inserting your own UUID into a db table
> > >
> > > Why does it matter if only three or so characters of a UUID
> > > are unique?  As long as they are indeed unique, who cares?
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        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