Math.random().toString(36).slice(2)
Date.now()
crypto.randomUUID()
(docs)const digitValues = new Uint8Array(16);
crypto.getRandomValues(digitValues);
const randomHash = hexValues = [...digitValues]
.map(value => value.toString(16).padStart(2, '0'))
.join('');