Created
April 26, 2016 15:10
-
-
Save ernestlv/0734b66ee7c6c4d5d2da1ec15fec1f43 to your computer and use it in GitHub Desktop.
generates an ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var id = (Math.random() * (1000000000 - 1) + 1 | 0) + ":" + (new Date().getTime()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment