aboutsummaryrefslogtreecommitdiff
path: root/src/corruptionCheck.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-19 16:52:27 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-19 16:52:27 -0800
commitf9728ef5b36fce1639af4ba6e9ac1e68321053fd (patch)
tree852a7d7b3e19581ed8841bc9f7776d2278cd9d5c /src/corruptionCheck.js
parent634c9b963c109c772f3ba913d4abd328093059bc (diff)
simplify corruption canary
Diffstat (limited to 'src/corruptionCheck.js')
-rw-r--r--src/corruptionCheck.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corruptionCheck.js b/src/corruptionCheck.js
index bd3b240b..d676c290 100644
--- a/src/corruptionCheck.js
+++ b/src/corruptionCheck.js
@@ -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++) {