source:
trip-planner-front/node_modules/nanoid/nanoid.js@
eed0bf8
Last change on this file since eed0bf8 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 190 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | export let nanoid=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}; |
Note:
See TracBrowser
for help on using the repository browser.