Skip to content

Commit

Permalink
Revised compress method
Browse files Browse the repository at this point in the history
Excess bytes are now distributed amongst the compressed bytes, instead
of being dumped into the final byte as they were before.
  • Loading branch information
Adam Cornille committed Apr 5, 2013
1 parent 3526073 commit b4942d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion humanhash.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}

var bytesLength = bytes.length,
seg_size = Math.floor(bytesLength / target),
seg_size = bytesLength / target,
segments = [],
seg_num = 0;

Expand Down

0 comments on commit b4942d7

Please sign in to comment.