Generar una identificación aleatoria
const randomID = Math.random().toString(36).substring(2)
thefazeelahmed
const randomID = Math.random().toString(36).substring(2)
export function calcId() {
const array = new Uint32Array(8);
self.crypto.getRandomValues(array);
for (var i = 0; i < 1; i++) {
const id = array[4];
//console.log(id);
return id;
}
}