mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-04 05:27:04 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			7 lines
		
	
	
		
			204 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			7 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;
 | 
						|
}
 |