consistent-hashing
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -67,3 +67,3 @@ var crypto = require('crypto'); | ||
ConsistentHashing.prototype.getNodePosition = function(hash) { | ||
var upper = this.getRingLength(); | ||
var upper = this.getRingLength() - 1; | ||
var lower = 0; | ||
@@ -88,3 +88,3 @@ var idx = 0; | ||
if (upper < 0) { | ||
upper = this.getRingLength(); | ||
upper = this.getRingLength() - 1; | ||
} | ||
@@ -91,0 +91,0 @@ |
{ | ||
"name": "consistent-hashing", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A pure JavaScript implementation of Consistent Hashing", | ||
@@ -5,0 +5,0 @@ "author": "Dai Akatsuka <d.akatsuka@gmail.com>", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7546
0