This commit is contained in:
Dragon Fire
2021-01-14 23:33:21 -05:00
parent b1a38e0363
commit d8d99874c1
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = class NameRaterCommand extends Command {
stringToSeed(str) {
if (!str) return 0;
let hash = 0n;
for (const char of s.split('')) {
for (const char of str.split('')) {
hash = (31n * hash) + BigInt(char.charCodeAt(0));
}
return hash;