This commit is contained in:
Dragon Fire
2021-01-14 23:34:24 -05:00
parent d8d99874c1
commit 73c0657cf8
+2 -2
View File
@@ -41,9 +41,9 @@ module.exports = class NameRaterCommand extends Command {
stringToSeed(str) {
if (!str) return 0;
let hash = 0n;
let hash = 0;
for (const char of str.split('')) {
hash = (31n * hash) + BigInt(char.charCodeAt(0));
hash = (31 * hash) + char.charCodeAt(0);
}
return hash;
}