Skip to content

Instantly share code, notes, and snippets.

@schas002

schas002/zuid.js

Created Oct 4, 2017
Embed
What would you like to do?
Humble one-liner to generate UIDs in vanilla.
module.exports = _ => new Date().getTime().toString(36) + '.' + (Math.random() * Math.pow(2, 32)).toString(36);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.