|
@@ -1,4 +1,4 @@
|
1
|
|
-var jssha = require('jssha');
|
|
1
|
+var JSSHA = require('jssha');
|
2
|
2
|
|
3
|
3
|
module.exports = {
|
4
|
4
|
/**
|
|
@@ -16,7 +16,7 @@ module.exports = {
|
16
|
16
|
// This implements the actual choice of an entry in the list based on
|
17
|
17
|
// roomName. Please consider the implications for existing deployments
|
18
|
18
|
// before introducing changes.
|
19
|
|
- var hash = (new jssha(roomName, 'TEXT')).getHash('SHA-1', 'HEX');
|
|
19
|
+ var hash = (new JSSHA(roomName, 'TEXT')).getHash('SHA-1', 'HEX');
|
20
|
20
|
var n = parseInt("0x"+hash.substr(-6));
|
21
|
21
|
var idx = n % config.boshList.length;
|
22
|
22
|
var attemptFirstAddress;
|