@xuda.io/runtime-bundle 1.0.976 → 1.0.977
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -13490,6 +13490,18 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
13490
13490
|
// return hashHex;
|
|
13491
13491
|
// }
|
|
13492
13492
|
|
|
13493
|
+
// Returns a 32-bit unsigned integer hash of a string (FNV-1a)
|
|
13494
|
+
function hash32(str) {
|
|
13495
|
+
let h = 0x811c9dc5; // FNV offset basis
|
|
13496
|
+
for (let i = 0; i < str.length; i++) {
|
|
13497
|
+
h ^= str.charCodeAt(i);
|
|
13498
|
+
// multiply by FNV prime (2^24 + 2^8 + 0x93) with 32-bit overflow
|
|
13499
|
+
h += (h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24);
|
|
13500
|
+
}
|
|
13501
|
+
// Convert to unsigned 32-bit
|
|
13502
|
+
return h >>> 0;
|
|
13503
|
+
}
|
|
13504
|
+
|
|
13493
13505
|
function hash32hex(str) {
|
|
13494
13506
|
return (hash32(str) >>> 0).toString(16).padStart(8, '0');
|
|
13495
13507
|
}
|
|
@@ -11217,6 +11217,18 @@ func.UI.screen.create_container = async function (SESSION_ID, $root_container, n
|
|
|
11217
11217
|
// return hashHex;
|
|
11218
11218
|
// }
|
|
11219
11219
|
|
|
11220
|
+
// Returns a 32-bit unsigned integer hash of a string (FNV-1a)
|
|
11221
|
+
function hash32(str) {
|
|
11222
|
+
let h = 0x811c9dc5; // FNV offset basis
|
|
11223
|
+
for (let i = 0; i < str.length; i++) {
|
|
11224
|
+
h ^= str.charCodeAt(i);
|
|
11225
|
+
// multiply by FNV prime (2^24 + 2^8 + 0x93) with 32-bit overflow
|
|
11226
|
+
h += (h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24);
|
|
11227
|
+
}
|
|
11228
|
+
// Convert to unsigned 32-bit
|
|
11229
|
+
return h >>> 0;
|
|
11230
|
+
}
|
|
11231
|
+
|
|
11220
11232
|
function hash32hex(str) {
|
|
11221
11233
|
return (hash32(str) >>> 0).toString(16).padStart(8, '0');
|
|
11222
11234
|
}
|