一致性哈希的ts实现 运行环境: npm install -g typescript mocha ts-node tslint 参考: https://segmentfault.com/a/1190000013533592