Skip to content

Instantly share code, notes, and snippets.

@zakcodez
Created September 7, 2021 11:17
Show Gist options
  • Save zakcodez/9ce32f727582ca331b1991195c8cb6fc to your computer and use it in GitHub Desktop.
Save zakcodez/9ce32f727582ca331b1991195c8cb6fc to your computer and use it in GitHub Desktop.
Simple ID generator
function generateId() {
const randomString = () => Math.random().toString(36).substring(2, 15);
const id = randomString() + randomString();
return id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment