Skip to content

Commit

Permalink
Removed incorrect comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay authored Feb 2, 2019
1 parent 7395343 commit 5319de0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports.generateAuthCode = exports.getAuthCode = function(secret, timeOffset) {
let time = exports.time(timeOffset);

let buffer = Buffer.allocUnsafe(8);
buffer.writeUInt32BE(0, 0); // This will stop working in 2038!
buffer.writeUInt32BE(0, 0);
buffer.writeUInt32BE(Math.floor(time / 30), 4);

let hmac = Crypto.createHmac('sha1', secret);
Expand Down Expand Up @@ -81,7 +81,7 @@ exports.generateConfirmationKey = exports.getConfirmationKey = function(identity
}

let buffer = Buffer.allocUnsafe(dataLen);
buffer.writeUInt32BE(0, 0); // This will stop working in 2038!
buffer.writeUInt32BE(0, 0);
buffer.writeUInt32BE(time, 4);

if (tag) {
Expand Down

0 comments on commit 5319de0

Please sign in to comment.