Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random id generator javascript

function uid() {
 let a = new Uint32Array(3);
 window.crypto.getRandomValues(a);
 return (performance.now().toString(36)+Array.from(a).map(A => A.toString(36)).join("")).replace(/./g,"");
};
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #random #id #generator #javascript
ADD COMMENT
Topic
Name
4+5 =