Paul N, spotted this ColdFusion code in a third-party shopping cart system he'd been tasked with modifying (to make it usable):



<cfset IDstring = CreateUUID()>

<cfset ThisCustomerID = Left(IDstring, 9) & LSDateFormat(Now(), 'MM-DD-YY')>


I guess a UUID was too unique for them - so they've nicely enhanced the chance of collision, while also giving themselves a considerably lower maximum number of unique IDs per day.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!