2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-15 07:43:22 +00:00

Moved ops to different modules

This commit is contained in:
n1474335
2024-04-05 18:10:14 +01:00
parent 1b870e559e
commit ed930d2364
7 changed files with 15 additions and 26 deletions

View File

@@ -22,7 +22,7 @@ class MurmurHash3 extends Operation {
super();
this.name = "MurmurHash3";
this.module = "Default";
this.module = "Hashing";
this.description = "Generates a MurmurHash v3 for a string input and an optional seed input";
this.infoURL = "https://wikipedia.org/wiki/MurmurHash";
this.inputType = "string";
@@ -115,11 +115,7 @@ class MurmurHash3 extends Operation {
* @return {number} 32-bit signed integer
*/
unsignedToSigned(value) {
if (value & 0x80000000) {
return -0x100000000 + value;
} else {
return value;
}
return value & 0x80000000 ? -0x100000000 + value : value;
}
/**