mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
6 lines
204 B
JavaScript
6 lines
204 B
JavaScript
export function gid(prefix){
|
|
let id = prefix !== undefined ? prefix : '';
|
|
id += new Date().getTime().toString(32);
|
|
id += parseInt(Math.random()*Math.pow(10,16)).toString(32);
|
|
return id;
|
|
}
|