From e1dbffbbc89e219d2bbccefe874481246f5e7aac Mon Sep 17 00:00:00 2001 From: snw7 <99040669+snw7@users.noreply.github.com> Date: Sat, 8 Jun 2024 17:05:22 +0200 Subject: [PATCH] Fix style --- client/run.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/run.js b/client/run.js index 6d04051..34ffc9b 100644 --- a/client/run.js +++ b/client/run.js @@ -8,8 +8,7 @@ const sha3_256 = importModule('js-sha3'); const 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());