Skip to content

Commit

Permalink
simplify corruption canary
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Feb 20, 2013
1 parent 634c9b9 commit f9728ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corruptionCheck.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var CorruptionChecker = {
CorruptionChecker.realFree(allocation);
},
canary: function(x) {
return (x + (x << 3) + (x&75) - (x&47))&255;
return (x&127) + 10;
},
fillBuffer: function(allocation, size) {
for (var x = allocation; x < allocation + size; x++) {
Expand Down

0 comments on commit f9728ef

Please sign in to comment.