Last active
September 2, 2015 18:04
-
-
Save AndrianBdn/ad4cd3efcad641a234aa to your computer and use it in GitHub Desktop.
This file contains 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
// copy-paste me | |
function UUIDv4Base64Url() { | |
return global.crypto.randomBytes(16).toString('base64').replace(/=+/, '').replace(/\+/g, '-').replace(/\//g, '_'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment