Lucee and UUID - Change segment format?

54 views
Skip to first unread message

David Eurenius

unread,
Mar 23, 2015, 10:44:44 AM3/23/15
to lu...@googlegroups.com
Hi guys,

According to the documentation Lucee creates UUID's with createUUID() according to the 4 segment standard. (8-4-4-16)
Example: xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx

Is there any way to change this to five segments (8-4-4-4-12) ?
Example: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

According to http://en.wikipedia.org/wiki/Universally_unique_identifier it seems this is inherited from ACF (Adobe ColdFusion).

Igal @ Lucee.org

unread,
Mar 23, 2015, 11:03:57 AM3/23/15
to lu...@googlegroups.com
you can use the CreateGUID() function instead, or do some simple string modification to "move" the hyphens.

Igal Sapir
Lucee Core Developer
Lucee.org

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/fb7ada16-f65b-49a1-8a22-dfe938997534%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Eurenius

unread,
Mar 23, 2015, 11:18:40 AM3/23/15
to lu...@googlegroups.com
Thanks Igal

That seems to be an excellent option.
Always impressed with this community!

--David
Reply all
Reply to author
Forward
0 new messages