Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Commit adc0de8

Browse files
authored
Merge pull request #344 from dapphub/timestamp-hash
util: add timestamp to build_hash
2 parents 71e91a5 + ca50eb3 commit adc0de8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/util.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ const getBuildId = () => {
9898

9999
const klab_HEAD = getKlabHEAD();
100100
const project_HEAD = getProjectHEAD();
101+
const timestamp = Date.now();
101102

102103
const build_hash = sha3(JSON.stringify({
103104
project_HEAD, // e.g. current k-dss git HEAD
104105
klab_HEAD, // e.g. klab master HEAD
106+
timestamp,
105107
})).slice(0, 20);
106108

107109
return build_hash;

0 commit comments

Comments
 (0)