mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
6 lines
251 B
JavaScript
6 lines
251 B
JavaScript
export default function() {
|
|
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
|
|
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
|
|
return (Math.random() * 16 | 0).toString(16);
|
|
}).toLowerCase();
|
|
}; |