Skip to content

Instantly share code, notes, and snippets.

@Akiyamka
Created November 9, 2017 12:35
Show Gist options
  • Save Akiyamka/3797ef8261e537161743d8e5c0d5d1c6 to your computer and use it in GitHub Desktop.
Save Akiyamka/3797ef8261e537161743d8e5c0d5d1c6 to your computer and use it in GitHub Desktop.
function generateId() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment