Skip to content

Generate a GUID/UUID-like string

If you want to generate a string in JavaScript that is compliant with RFC4122, you can use this function:

[sc name=”src” url=”https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript” ]

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.