getStringHash (#4811) cyrb53 (c) 2018 bryc https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js License: Public domain (or MIT if needed). Attribution appreciated. Co-authored-by: user <user@exmaple.com>

1b196cc101268f62569d3cdeaf7cca12ba426d4a

DeclineThyself <235079501+DeclineThyself@users.noreply.github.com>

Signed
1 files changed, +4 -0Showing whitespace changes
public/scripts/utils.js+4 -0
@@ -496,6 +496,10 @@ export async function parseJsonFile(file) {
496496
497497/**
498498 * Calculates a hash code for a string.
499+ * cyrb53 (c) 2018 bryc ({@link https://github.com/bryc/code/blob/master/jshash/experimental/cyrb53.js|github.com/bryc})
500+ * License: Public domain (or MIT if needed). Attribution appreciated.
501+ * A fast and simple 53-bit string hash function with decent collision resistance.
502+ * Largely inspired by MurmurHash2/3, but with a focus on speed/simplicity.
499503 * @param {string} str The string to hash.
500504 * @param {number} [seed=0] The seed to use for the hash.
501505 * @returns {number} The hash code.