This commit is contained in:
Dragon Fire
2021-01-14 23:40:19 -05:00
parent 73c0657cf8
commit 310e9c2ccb
+1 -1
View File
@@ -43,7 +43,7 @@ module.exports = class NameRaterCommand extends Command {
if (!str) return 0;
let hash = 0;
for (const char of str.split('')) {
hash = (31 * hash) + char.charCodeAt(0);
hash += char.charCodeAt(0);
}
return hash;
}