Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript generate unique id

function randomId(): string {
  const uint32 = window.crypto.getRandomValues(new Uint32Array(1))[0];
  return uint32.toString(16);
}
Source by levelup.gitconnected.com #
 
PREVIOUS NEXT
Tagged: #javascript #generate #unique #id
ADD COMMENT
Topic
Name
2+8 =