Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
snw7 committed Jun 8, 2024
1 parent 29e8437 commit e1dbffb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const sha3_256 = importModule('js-sha3');

const SALT = '<your-secret-salt>';

const timestampA = Math.floor(Date.now() / 1000);
const timestamp = Math.floor(timestampA / 30) * 30;
const timestamp = Math.floor(Math.floor(Date.now() / 1000) / 30) * 30;

function generateHash(salt, timestamp) {
return sha3_256(salt + timestamp.toString());
Expand Down

0 comments on commit e1dbffb

Please sign in to comment.