From ee6ed655390e6159a57ca1fe1725fd5294e66efb Mon Sep 17 00:00:00 2001 From: Eltrac Date: Mon, 15 Sep 2025 11:37:06 +0800 Subject: fix: generate truly unique IDs --- src/utility.js | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/utility.js (limited to 'src/utility.js') diff --git a/src/utility.js b/src/utility.js deleted file mode 100644 index f2ee3fb..0000000 --- a/src/utility.js +++ /dev/null @@ -1,11 +0,0 @@ -export default class Utility { - static hashCode(str) { - let hash = 0; - for (let i = 0, len = str.length; i < len; i++) { - let chr = str.charCodeAt(i); - hash = (hash << 5) - hash + chr; - hash |= 0; // Convert to 32bit integer - } - return (hash>0) ? hash : -hash; - } -} -- cgit v1.2.3