Skip to content

Instantly share code, notes, and snippets.

@mittalyashu
Created August 6, 2020 08:41
Show Gist options
  • Save mittalyashu/e3c85b5771a13272650c3634a9d0602d to your computer and use it in GitHub Desktop.
Save mittalyashu/e3c85b5771a13272650c3634a9d0602d to your computer and use it in GitHub Desktop.
Random ID generator
exports.idGenerator = () => {
return (
Math.random()
.toString(32)
.substr(2) +
Math.random()
.toString(32)
.substr(2)
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment