Travis build: 1490 [cron]

This commit is contained in:
30secondsofcode
2018-01-30 20:16:28 +00:00
parent 6d7dc2933c
commit 4b0dee99c5
7 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,5 @@
const randomHexColorCode = () => {
let n = ((Math.random() * 0xfffff) | 0).toString(16);
return '#' + (n.length !== 6 ? ((Math.random() * 0xf) | 0).toString(16) + n : n);
let n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + n.slice(0, 6);
};
module.exports = randomHexColorCode