I'm having trouble with the following code that creates a more unique UUID 
than the standard CreateUUID() function.

It works fine on my development server (CF 5), the main test server 
downstairs (also CF 5) however
when posted on the production server (www.anzfa.gov.au) I get "not an 
integer" error.

Could anyone running 4.5 and 5 test this code. I have a feeling the people 
that did the upgrade on our production server did not do it properly (the 
went into receivership late last week also). For example when going into 
the CF Administrator 4.5 comes up and not 5.

Thanks!

PS - please email me back at [EMAIL PROTECTED]

<!--- Create a client Universally Unique Identifier (UUID) --->
<cfif not isdefined("Session.ClientUUID")>
<cfset x = "">
<cfloop list="8,4,4,4,16" index="u">
         <cfloop from ="1" to = "#u#" index="p">
                 <cfset t = randomize(int(gettickcount()/p))>
                 <cfset s = randrange(48,63)>
                 <cfset s = iif(s lte 57, s, s + 7)>
                 <cfset x = x & chr(s)>
         </cfloop>
         <cfif u neq 16>
                 <cfset x = x & "-">
         </cfif>
</cfloop>
<cfset ClientUUID = x>
</cfif>

<cfoutput>#ClientUUID#</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to