Created
September 17, 2020 16:47
-
-
Save audinue/97498a5117f945044f0898a8d512f1da 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
const uid = () => [...crypto.getRandomValues(new Uint8Array(16))] | |
.map(x => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'.charAt(x % 62)) | |
.join('') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment