Skip to content

Instantly share code, notes, and snippets.

@ynaoto
Created March 22, 2013 14:55
Show Gist options
  • Save ynaoto/5221883 to your computer and use it in GitHub Desktop.
Save ynaoto/5221883 to your computer and use it in GitHub Desktop.
Enough unique id
uid = ((Math.random() * 10000)|0) +
'-' + Date.now() +
'-' + ((Math.random() * 10000)|0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment