Skip to content

Commit

Permalink
Merge branch 'master' of github.com:speakeasyjs/speakeasy into v2
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/speakeasy.js
#	package.json
  • Loading branch information
markbao committed Jan 23, 2016
2 parents 98230f5 + f6cd5a1 commit fee1810
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 @@ -130,7 +130,7 @@ exports.hotp = function hotpGenerate (options) {
* @param {String} [options.algorithm="sha1"] Hash algorithm (sha1, sha256,
* sha512).
* @return {Object} On success, returns an object with the counter
* difference between the client and the server as the `delta` property (i.e.
* difference between the client and the server as the `delta` property (i.e.
* `{ delta: 0 }`).
* @method hotp․verifyDelta
* @global
Expand Down Expand Up @@ -445,7 +445,7 @@ exports.generate_key_ascii = function(length, symbols) {

var output = '';
for (var i = 0, l = bytes.length; i < l; i++) {
output += set[~~(bytes[i] / 0xFF * (set.length-1))];
output += set[Math.floor(bytes[i] / 255.0 * (set.length-1))];
}
return output;
};
Expand Down

0 comments on commit fee1810

Please sign in to comment.