Fixed multiplier for x11

This commit is contained in:
Matt 2014-03-30 04:15:06 -06:00
parent 70c93178c6
commit 6c39d2d201

View File

@ -5,7 +5,9 @@ var util = require('./util.js');
var maxInt256 = global.maxDiff = bignum('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16);
var algos = global.algos = {
var algos = module.exports = global.algos = {
sha256: {
shift: 32,
multiplier: Math.pow(2, 32),
@ -36,7 +38,7 @@ var algos = global.algos = {
},
x11: {
shift: 20,
multiplier: 3.1 * Math.pow(2, 16),
multiplier: Math.pow(2, 30),
hash: function(){
return multiHashing.x11.apply(this, arguments);
}