Skip to content

Instantly share code, notes, and snippets.

@bengrunfeld
Created May 19, 2021 14:23
Show Gist options
  • Save bengrunfeld/67b878a5c0f709be691420e4acaf01c4 to your computer and use it in GitHub Desktop.
Save bengrunfeld/67b878a5c0f709be691420e4acaf01c4 to your computer and use it in GitHub Desktop.
UUID Generator based on random numbers
() => ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,a=>(a^Math.random()*16>>a/4).toString(16))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment