mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-29 10:59:12 -04:00
use lodash random
This commit is contained in:
parent
64d7ea833f
commit
a654485bea
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ export function objectIdFromDate(milliseconds: number, onlyDate: boolean = false
|
||||||
return '0';
|
return '0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return (Math.random() * 16 | 0).toString(16);
|
return (_.random() * 16 | 0).toString(16);
|
||||||
};
|
};
|
||||||
|
|
||||||
const timestamp = (milliseconds / 1000 | 0).toString(16);
|
const timestamp = (milliseconds / 1000 | 0).toString(16);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue