Fixed multiplier for x11
This commit is contained in:
parent
70c93178c6
commit
6c39d2d201
@ -5,7 +5,9 @@ var util = require('./util.js');
|
|||||||
|
|
||||||
var maxInt256 = global.maxDiff = bignum('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16);
|
var maxInt256 = global.maxDiff = bignum('ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff', 16);
|
||||||
|
|
||||||
var algos = global.algos = {
|
|
||||||
|
|
||||||
|
var algos = module.exports = global.algos = {
|
||||||
sha256: {
|
sha256: {
|
||||||
shift: 32,
|
shift: 32,
|
||||||
multiplier: Math.pow(2, 32),
|
multiplier: Math.pow(2, 32),
|
||||||
@ -36,7 +38,7 @@ var algos = global.algos = {
|
|||||||
},
|
},
|
||||||
x11: {
|
x11: {
|
||||||
shift: 20,
|
shift: 20,
|
||||||
multiplier: 3.1 * Math.pow(2, 16),
|
multiplier: Math.pow(2, 30),
|
||||||
hash: function(){
|
hash: function(){
|
||||||
return multiHashing.x11.apply(this, arguments);
|
return multiHashing.x11.apply(this, arguments);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user